Skip to content

az keyvault create not idempotent with access policies #13752

@mcalnd70

Description

@mcalnd70

az feedback auto-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

Metadata

Metadata

Assignees

Labels

KeyVaultaz keyvaultcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions