Impossible to update network application-gateway listener customErrorConfigurations #29351
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Network
az network vnet/lb/nic/dns/etc...
Portal
az portal
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
Hello
While trying to set a customErrorConfigurations to network application-gateway listener.
First run the command:
az network application-gateway http-listener update -g $gr_ppd --gateway-name $appgw_ppd --name appGatewayHttpListener --set customErrorConfigurations=[]
An then try to run still have an error .
Related command
az network application-gateway http-listener update -g $gr_ppd --gateway-name $appgw_ppd --name appGatewayHttpListener --add customErrorConfigurations[0].customErrorPageUrl=https://xxxxxx.windows.net/error-502.html customErrorConfigurations[0].statusCode=HttpStatus502
Errors
Couldn't find 'customErrorPageUrl=https://xxxxx' in 'customErrorConfigurations[0].customErrorPageUrl=https://xxxxx.windows.net/error-502'. Available options: ['custom_error_page_url', 'status_code']
Issue script & Debug output
Couldn't find 'customErrorPageUrl=https://xxxxx' in 'customErrorConfigurations[0].customErrorPageUrl=https://xxxxx.windows.net/error-502'. Available options: ['custom_error_page_url', 'status_code']
Expected behavior
customErrorConfigurations set and visible when issuing az cli show command and when using the az portal
Environment Summary
azure-cli 2.62.0
core 2.62.0
telemetry 1.1.0
Extensions:
bastion 1.0.1
Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\edanede.azure\cliextensions'
Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: