Azure / Azure/azure-cli

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

Open
#27,869 1 comment 0 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign Azure CLI Team customer-reported Network potential-pruning question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.