Application gateway updating multi path backend settings

Stan Frambach 41 Reputation points
2023-08-30T12:10:03.97+00:00

I want to update the backend settings for a multi path application gateway.

The initial setup is:

Path Target Name Backend Setting Name Backend Pool
/foo target settings pool
/bar target2 settings pool

The target is:

Path Target Name Backend Setting Name Backend Pool
/foo target settings pool
/bar target2 NEWSETTINGS pool
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,054 questions
{count} votes

2 answers

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,486 Reputation points Microsoft Employee
    2023-08-30T14:25:59.4333333+00:00

    Hello @Stan Frambach ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you would like to update the backend settings for a multi path application gateway using Azure CLI or PowerShell.

    You can use the az network application-gateway url-path-map rule command to manage the rules of a URL path map in Azure Application gateway.

    To achieve your requirement, run the below Azure CLI command:

    az network application-gateway url-path-map rule create -g resourcegroupname --gateway-name appgatewayname -n target2 --path-map-name rulename --paths /bar --address-pool pool --http-settings NEWSETTINGS
    

    Just replace the resource group name, application gateway name and the application gateway rule name where this path-based rules are added in the above command and run it. It will update your target2 path to use the NEWSETTINGS.

    Refer: https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/url-path-map/rule?view=azure-cli-latest#az-network-application-gateway-url-path-map-rule-create

    NOTE: Even though it is a create rule command, when used with the same path and target name on the application gateway, it will update the existing path target settings.

    I tried this in my lab, and it works. You can see the screenshots below for reference:

    User's image

    After the command completed successfully, the httpsettings for the targetname "target2" was updated as below:

    User's image

    Kindly let us know if 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.

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.