-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
KeyVaultaz keyvaultaz keyvaultcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Description
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
The "az keyvault create" command is not idempotent with Access Policies. On re-running the command the Access Policies are deleted/removed.
To Reproduce
Create a KeyVault with az keyvault create e.g. "az keyvault create --location westus2 --name MyKeyVault --resource-group MyResourceGroup"
Assign an access policy to the KeyVault, either manually in the portal, or via another Azure CLI or PowershellAz command.
Run the "az keyvault create --location westus2 --name MyKeyVault --resource-group MyResourceGroup" command again
The access policy has been removed/deleted
Expected behavior
Leave the Access Policy alone
Environment summary
All environments
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
KeyVaultaz keyvaultaz keyvaultcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request