AZ CLI az network application-gateway address-pool update adding and removing backend IP addresses

2021-01-05T17:08:04.957+00:00

I'm trying to script adding and removing backend IP addresses using AZ CLI

az version 2.16

az network application-gateway address-pool update -g RGName --gateway-name APPGWayName -n BackEndPoolName --remove backendAddresses "{\"ip_address\":\"{10.0.0.3}\"}"

When you have multiple entries it doesn't appear to be able to remove an entry also the doc
https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/address-pool?view=azure-cli-latest#az_network_application_gateway_address_pool_update
Is using the format of backendAddresses "{ "ip_address": "{10.0.0.13}" }"
again without success. I am running these commands on Windows.

Would the recommend approach to try the cloud shell / run in WSL ?

Kind Regards

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

1 answer

Sort by: Most helpful
  1. suvasara-MSFT 10,016 Reputation points
    2021-01-11T04:32:13.963+00:00

    @Stephen Gardiner (Roc Technologies) , Looks like there is an Issue within the command. I have tested this on Azure Cloud Shell with no luck. It is expecting for more arguments. I would suggest you drop a mail to azcommunity@microsoft.com for deeper investigation and will update the document if it's necessary.

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments