Hello @Arun Menon ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that when you try to create a new routing rule in the Azure Application gateway, you get the option for path-based routing, however, when you try to modify an existing rule, it doesn't provide the option to add path-based rules and you would like to know if this is by design.
Yes, this is by design.
When you create a new rule, you choose between basic and path-based :
- Basic - if you want to forward all requests on the associated listener (for example, blog.contoso.com/)* to a single backend pool.
- Path-based - if you want to route requests from specific URL paths to specific backend pools. The path pattern is applied only to the path of the URL, not to its query parameters.
When you create a rule in Azure Application Gateway, you define its type (basic or path-based) at the time of creation. Once a rule is created, you cannot directly modify its type or change it from basic to path-based or vice versa. You can only edit the settings of the existing rule based on the type on which it was created.
If you need to change the rule type, you have to create a new rule with the desired type and associate the desired listeners and backend pools.
https://learn.microsoft.com/en-us/azure/application-gateway/configuration-request-routing-rules
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.