-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_application_gateway
documentation doesn't reflect mandatory arguments
#16793
Comments
Same issue. Using a dynamic block of routing rules, applying fine in 3.5, but failing in 3.6 for the same error with the updated API version. |
I am trying to run terraform script for Application gateway. There are no changes in my code and pipelines. I am getting these error messages: |
You will need to pin to the provider to azurerm 3.5.0 or earlier. From 3.6.0 onwards the priority is needed. |
I added priority on request_routing_rule and resolved the issue. Thank you all. |
Facing the same issue since yesterday, if they keep rolling out breaking changes like this, it's going to be hard to manage the modules. I fixed 5 modules in my org recently to make them 3.x.x compatible. I don't understand why the documentation is not updated when the change is rolled out. In the docs, the priority is still optional. |
Could you please share the entry/value you provided for "priority" in request_routing_rule, because we too have one app gateway created by terraform for multiple domains. |
This functionality has been released in v3.7.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
you need add priority in request_routing_rule, for exemple : request_routing_rule { |
I've submitted a pull request to include priority in the example code which should help clarify in future too - |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.x
AzureRM Provider Version
3.6.0
Affected Resource(s)/Data Source(s)
azurerm_application_gateway
Terraform Configuration Files
n/a
Debug Output/Panic Output
Expected Behaviour
The documentation for
azurerm_application_gateway
states that thepriority
within therequest_routing_rule
block is optional.It is now mandatory as of API 2021-08-01.
Actual Behaviour
When no priority is set, the error below happens
│ Error: creating Application Gateway: (Name "app-gw" / Resource Group "example"): network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayRequestRoutingRulePriorityCannotBeEmpty" Message="Priority for the request routing rule /subscriptions/xxxxx/resourceGroups/app-gw/providers/Microsoft.Network/applicationGateways/app-gw/requestRoutingRules/routing-rule cannot be empty. All request routing rules should have a priority defined starting from api-version 2021-08-01" Details=[]
Steps to Reproduce
No response
Important Factoids
The Application Gateway API version was changed as below. This issue was introduced with the newer api version.
References
No response
The text was updated successfully, but these errors were encountered: