might be the access policy changed or redefined.
check the admin who has more access right than yours.
sepcify if your environment has different subscriptions .
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I created a new Vault and added a few key permissions to users to be able to access the secrets in the vault.
However, I am unable to do it anymore. The Vault create button is disabled.
I do notice there's probably a KeyVault permission I am missing. If that's the case how to I ask for it?
might be the access policy changed or redefined.
check the admin who has more access right than yours.
sepcify if your environment has different subscriptions .
@Miki Ben-Zeev
Thank you for your post!
Error Message:
"Microsoft.KeyVault/vaults/write" permission is required to add or edit access policies.
From your error message and post it looks like you're trying to create a new Key Vault Access Policy and are running into a permissions issue. I found a similar issue, and if you recently moved your Key Vault to a new Azure tenant, you'll have to update the Tenant ID.
Update tenant ID in a key vault:
Select-AzSubscription -SubscriptionId <your-subscriptionId> # Select your Azure Subscription
$vaultResourceId = (Get-AzKeyVault -VaultName myvault).ResourceId # Get your key vault's Resource ID
$vault = Get-AzResource -ResourceId $vaultResourceId -ExpandProperties # Get the properties for your key vault
$vault.Properties.TenantId = (Get-AzContext).Tenant.TenantId # Change the Tenant that your key vault resides in
$vault.Properties.AccessPolicies = @() # Access policies can be updated with real
# applications/users/rights so that it does not need to be # done after this whole activity. Here we are not setting
# any access policies.
Set-AzResource -ResourceId $vaultResourceId -Properties $vault.Properties # Modifies the key vault's properties.
Clear-AzContext #Clear the context from PowerShell
Connect-AzAccount #Log in again to confirm you have the correct tenant id
I hope this helps!
If you have any other questions, please let me know.