Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

[Documentation] Updating WAF policy using name as a parameter (instead of resource ID) fails #27869

Open ZarrVenkat opened 10 months ago

ZarrVenkat commented 10 months ago

Describe the bug

In the documentation link: Documentation states otherwise https://docs.microsoft.com/en-us/cli/azure/network/application-gateway/http-listener?view=azure-cli-latest#az_network_application_gateway_http_listener_update

For HTTP listener update, in the optional parameters it says "--waf-policy Name or ID of a web application firewall policy resource."

But when we try with Name it fails, we need to update the documentation and remove the "Name" part.

Related command

az network application-gateway http-listener show -g MyResourceGroup --gateway-name MyAppGateway -n MyHttpListener

Errors

NA

Issue script & Debug output

NA

Expected behavior

NA Documentation bug

Environment Summary

NA

Additional context

No response

yonzhan commented 10 months ago

Thank you for opening this issue, we will look into it.