[Azure Application Gateway]Modify existing routing rule to add path based routing

Arun Menon 25 Reputation points
2023-11-17T09:04:50.85+00:00

Hey,

While attempting to incorporate a new routing rule in the Azure portal, I observe the option for path-based routing. However, when I attempt to modify an existing rule, the Azure portal does not seem to provide the provision for adding a path-based rule. Is it not permissible to include path-based routing to an existing rule ?

Azure portal when adding new rule:

User's image

Azure portal when modifying existing rule:User's image

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,213 questions
{count} vote

Accepted answer
  1. GitaraniSharma-MSFT 50,021 Reputation points Microsoft Employee Moderator
    2023-11-17T09:56:49.7133333+00:00

    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.

    enter image description here

    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.

    Refer: https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-components#request-routing-rules

    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.


0 additional answers

Sort by: Most helpful

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.