Closed jazzywessy closed 1 day ago
@jazzywessy Thank you for taking the time to open this feature request!
Support for the full list of status_codes at both Global and Listener level https://learn.microsoft.com/en-us/azure/application-gateway/custom-error
Adding an un-supported error page via CLI causes a terraform Apply error below,
Failure sending request: StatusCode=400 -- Original Error: Code="ApplicationGatewayCustomErrorStatusCodeIsInvalid" Message="Custom error page has an invalid HTTP status code '500', for applicationGateways /subscriptions/[removed[/resourceGroups/[removed[/providers/Microsoft.Network/applicationGateways/[removed[. Valid status codes are: '[403, 502]'." Details=[]
The app gateway is using the network 2022-07-01
and this version has not the new options
they come with the network 2022-11-01
And that takes me the hope, we will get this feature fast :(
Any updates on this?
I just noticed, that setting the error pages via powershell, will result into a error (Custom error pages has invalid HTTP status code '500' for
yeah, I tried to upgrade the API Version and still got the same error 🫠
for those who want to try:
terraform state replace-provider hashicorp/azurerm registry.terraform.io/carnei-ro/azurerm
terraform plan
any update on this? I just received the same error
Is there an existing issue for this?
Community Note
Description
Currently, azurerm_application_gateway http_listener custom_error_configurations status_code only allow 403 and 502.
However, on azure portal other status code is allowed which will defer from terraform state and cannot be track if it is manually added on azure portal.
New or Affected Resource(s)/Data Source(s)
azurerm_application_gateway
Potential Terraform Configuration
References
No response