Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report-AGWv1 url_path_rules didn't executed when request_routing_rules.backend_pool_key updated #1840

Closed
1 task done
khaman-pet opened this issue Oct 23, 2023 · 2 comments · Fixed by #1888
Closed
1 task done
Labels
bug Something isn't working

Comments

@khaman-pet
Copy link
Contributor

khaman-pet commented Oct 23, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Version of the module you are using

5.7.3

Rover Version

aztfmod/rover:1.4.6-2306.1405

Terraform Version

No response

AzureRM Provider Version

No response

Affected Resource(s)/Data Source(s)

resource "null_resource" "set_url_path_rule

Terraform Configuration Files

https://github.com/aztfmod/terraform-azurerm-caf/blob/5bb7887b61672c2baaa5dd0e59ec0686e18b8cd3/examples/networking/app_gateway/301-agw-v1/agw_application.tfvars

Expected Behaviour

No response

Actual Behaviour

Changes:
image

Before:
image

After:
image

Steps to Reproduce

  1. then create new backend pool
  2. use the new pool and update RRR
    request_routing_rules.backend_pool_key
  3. use the new pool and update path
    url_path_maps.backend_pool_key

Important Factoids

No response

References

No response

@khaman-pet khaman-pet added the bug Something isn't working label Oct 23, 2023
@khaman-pet
Copy link
Contributor Author

@iriahk89 Please look into this issue as per comm.

@khaman-pet
Copy link
Contributor Author

khaman-pet commented Oct 27, 2023

Related issue: Tried to use default backend in RRR backend pool to 'demo00'. However, url_path_maps with different backend pool 'demo01' is overwritten the RRR backend pool

request_routing_rules = {
      default = {
        name                 = "default_demo_app_00"
        rule_type            = "PathBasedRouting"
        http_listener_key    = "public"
        backend_pool_key     = "demo00"
        http_settings_key    = "demo_http_setting00"
        url_path_map_key     = "demo_upm00"
        priority             = 10000
        rewrite_rule_set_key = "rrs1"
      }
    }

    url_path_maps = {
      demo_upm00 = {
        name                 = "url-path-map-name"
        paths                = "/test/*"
        rule_name            = "url-path-map-rule-name"
        backend_pool_key     = "demo01"
        http_settings_key    = "demo_http_setting00"
        rewrite_rule_set_key = "rrs1"
      }
    }

    url_path_rules = {
      rule1 = {
        name              = "url-rule1-demo"
        url_path_map_key  = "demo_upm00"
        paths             = "/test/rule1/*"
        backend_pool_key  = "demo02"
        http_settings_key    = "demo_http_setting00"
      }
      ...
image

@iriahk89 iriahk89 linked a pull request Dec 12, 2023 that will close this issue
6 tasks
arnaudlh added a commit that referenced this issue Jan 5, 2024
Resolved #1840 Issue with updating url_path_map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant