Application Gateway - Rewrite set

sharif shaik 0 Reputation points
2025-07-21T17:54:17.0833333+00:00

Application Gateway

Cannot associate rewrite set with path-based routing rule.

Rewrite set saves fine without any routing rule selected.

Any rule association causes a generic provisioning error:

"An error occurred while applying configuration to the Application Gateway."

All rules and rewrite sets were deleted and recreated.

Tried saving after each step with delays in between. No success.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jose Benjamin Solis Nolasco 4,986 Reputation points
    2025-07-21T18:23:34.3733333+00:00

    @sharif shaik I hope you are doing well,

    This error often stems from a misconfiguration or a conflict in the Application Gateway's provisioning state. Try using Azure PowerShell to reset the gateway:

    Get-AzApplicationGateway -Name "your_gateway_name" -ResourceGroupName "your_resource_group" | Set-AzApplicationGateway
    

    This can help refresh the configuration and clear out any lingering errors

    You can follow this step from someone with the same error : https://learn.microsoft.com/en-us/answers/questions/2242908/app-gateway-provisioned-state-failed

    😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.