I get this error when trying to apply an Azure Application Gateway:
Error: Error Creating/Updating Application Gateway “X” (Resource Group “X”): network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 – Original Error: Code=“ApplicationGatewayRewriteRuleSetActionSetInRewriteRuleCannotBeEmpty” Message=“ActionSet is a required field in a RewriteRule.” Details=
But in the module documentation there is nothing on ActionSets. I even did a terraform import on a live Application Gateway with Rewrite Rules and it would show any sort of Action or ActionSet block.
This is with both the 1.x and 2.x azurerm provider.
Did you find a solution to this?
I am having the same issue:
network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 – Original
Error: Code=“ApplicationGatewayRewriteRuleSetActionSetInRewriteRuleCannotBeEmpty” Message=“ActionSet is a required field in a RewriteRule.” Details=
and included the rewrite_rule_set_name in my path rules.
Using “terraform apply”, I get the error:
Error: Error Creating/Updating Application Gateway ‘[gatewayname]’: network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 – Original Error: Code=‘ApplicationGatewayRewriteRuleSetActionSetInRewriteRuleCannotBeEmpty’ Message=‘ActionSet is a required field in a RewriteRule.’ Details=
Unfortunately… creating the action_set{} section in the rewrite_rule_set doesn’t solve the issue, since Terraform doesn’t recognise it.
terraform version 0.14.0
I am willing to try using terraform apply -target X to avoid overriding the rewrite rules every time.