Provider does not allow rewrite_rule_set blocks for basic SKU application gateways #27965
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.6.5
AzureRM Provider Version
4.8.0
Affected Resource(s)/Data Source(s)
azurerm_application_gateway
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The plan should have succeeded, as header rewrites are supported by the basic SKU: https://learn.microsoft.com/en-us/azure/application-gateway/overview-v2#sku-types.
I.e.
rewrite_rule_set
blocks should be allowed, as long as they don't contain arewrite_rule
with aurl
block.rewrite_rule
with eitherrequest_header_configuration
orresponse_header_configuration
should be allowed.Actual Behaviour
The plan failed.
Steps to Reproduce
terraform plan
Important Factoids
No response
References
The issue was introduced in the PR that added support for the Basic SKU: https://github.com/hashicorp/terraform-provider-azurerm/pull/27440/files. The PR added a check that will fail the plan if there are
rewrite_rule_set
blocks, which is too strict compared to what is allowed in the Azure Portal for a basic SKU Application gateway.Suggested solution
rewrite_rule_set
blocks should only fail the check if they have arewrite_rule
with aurl
block.rewrite_rule
with eitherrequest_header_configuration
orresponse_header_configuration
should be allowed.The text was updated successfully, but these errors were encountered: