azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Wrong documnetation for "--source-asgs" parameter of “az network nsg rule” command

Open stprokho opened this issue 8 years ago • 7 comments

Describe the bug https://docs.microsoft.com/en-us/cli/azure/network/nsg/rule?view=azure-cli-latest article says: "--source-asgs Space-separated list of application security group names or IDs." Which in fact is not supported by CLI and following error being returned: "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."

To Reproduce Issue can be reproduced if you run "az network nsg rule create" and assign two or more space separated ASGs via "--source-asgs" parameter

Expected behavior There are two options:

  • Both ASGs should be assigned as per documentation.
  • documentation should be updated saying that only single ASG can be assigned

Environment summary Any

Additional context N/A

stprokho avatar Aug 31 '18 07:08 stprokho

This feature is not supported by the service but is how their object is modeled.

tjprescott avatar Aug 31 '18 14:08 tjprescott

I'll have a look and get back.

chandrasekarsrinivasan avatar Nov 27 '18 19:11 chandrasekarsrinivasan

API supports single ASG on source or destination, array expression it's intented for future improvements. Please proceed with the second approach:

  • documentation should be updated saying that only single ASG can be assigned

malopMSFT avatar Nov 27 '18 20:11 malopMSFT

@tjprescott can you please update the documentation in CLI?

chandrasekarsrinivasan avatar Nov 27 '18 20:11 chandrasekarsrinivasan

@malopMSFT @chandrasekarsrinivasan Does it still support only one source or destination?

mmyyrroonn avatar Aug 19 '19 08:08 mmyyrroonn

Still single source or destination, documentation should be updated to better reflect the API behavior

malopMSFT avatar Aug 26 '19 15:08 malopMSFT

@malopMSFT Thanks. I will update the documentation soon.

mmyyrroonn avatar Aug 27 '19 05:08 mmyyrroonn