Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to update network application-gateway listener customErrorConfigurations #29351

Open
danyric opened this issue Jul 10, 2024 · 2 comments
Assignees
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

Comments

@danyric
Copy link

danyric commented Jul 10, 2024

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=[]

{
"customErrorConfigurations": [],
................
"type": "Microsoft.Network/applicationGateways/httpListeners"
}

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

@danyric danyric added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Network az network vnet/lb/nic/dns/etc... Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Portal az portal labels Jul 10, 2024
@yonzhan yonzhan added this to the Backlog milestone Jul 10, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 10, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 10, 2024

network

@ReaNAiveD
Copy link
Member

@danyric Based on the error message, could you please try changing customErrorConfigurations[0].customErrorPageUrl to customErrorConfigurations[0].custom_error_page_url and changing customErrorConfigurations[0].statusCode to customErrorConfigurations[0].status_code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants