[Documentation] Updating WAF policy using name as a parameter (instead of resource ID) fails
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.