Azure / Azure/azure-rest-api-specs

"az network nsg rule create" command parameter "--source-asgs" does not support multiple ASGs

Open
#3,784 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

"az network nsg rule create" command parameter "--source-asgs" does not support multiple ASGs while it's name, help output and documentation advice otherwise:

1. https://docs.microsoft.com/en-us/cli/azure/network/nsg/rule?view=azure-cli-latest says:

"--source-asgs
Space-separated list of application security group names or IDs."

2. "az network nsg rule create" says:
...
usage: az network nsg rule create [-h] [--verbose] [--debug]
...
[--source-asgs SOURCE_ASGS [SOURCE_ASGS ...]]

In fact, if you provide two or more ASGs following error occurs:

"A security rule may have up to 1 Application Security Group in the source or destination fields. The requested configuration has 2 in the SourceApplicationSecurityGroups field."

Contributor guide

Open the contributing guide

Research direction

Start by comparing the network NSG rule specification with the `az network nsg rule create` parameter behavior and the linked CLI documentation. Verify whether the service accepts multiple source ASGs and identify which specification or generated documentation disagrees. Done means the repository accurately reflects the supported cardinality and its documentation is consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.