Skip to content

az storage account network-rule add is not idempotent #10673

@jurjenoskam

Description

@jurjenoskam

(azure-cli 2.0.74, I did not try other versions)

az storage account network-rule add is not idempotent. The first time I run it it works, subsequent invocations result in:

Values for request parameters are invalid: networkAcls.virtualNetworkRules[*].id(unique). For more information, see - https://aka.ms/storagenetworkruleset

In the spirit of https://github.com/Azure/azure-cli/blob/dev/doc/command_guidelines.md#standard-command-types I believe the subsequent operations should not result in an error, but be a no-op instead (making this command idempotent).

Metadata

Metadata

Assignees

Labels

Storageaz storagebugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions