Other Articles

Key Vault – Use Azure RBAC Authorization

Secure Configuration Checks > Azure

This check ensures that Azure Key Vaults use Azure role-based access control (RBAC) to authorize access to keys, secrets and certificates, instead of vault access policies. Azure RBAC gives centralized, consistent access management and works with features such as Privileged Identity Management and Conditional Access.

Check Details

  • Resource: Key Vault
  • Check: Use Azure RBAC for Key Vault Access
  • Risk: Vault access policies are managed separately for each vault and offer less control. Access can be granted too broadly, and it is harder to review and audit across the environment.

Before you start

  • Once the vault switches to Azure RBAC, existing access policies stop working. Assign the equivalent Azure roles to every user, group and application that needs access, or they will lose access.
  • You need the Owner or User Access Administrator role on the vault to assign roles.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal dashboard
  2. Navigate to Key vaults and select the affected key vault. Azure Key vaults list
  3. In the left menu, click on Access control (IAM) and assign the required roles to the users, groups and applications that need access (for example, Key Vault Administrator, Key Vault Secrets User or Key Vault Crypto User).
  4. In the left menu, click on Access configuration under Settings. Access configuration in the Key Vault menu
  5. Under Permission model, select Azure role-based access control. Permission model set to Azure role-based access control
  6. Click Apply to save the changes.

Remediation via Azure CLI

  1. Open Azure Cloud Shell from the Azure Portal or use a local terminal with Azure CLI installed. Azure Cloud Shell
  2. Run the following command to assign a role before switching:
    az role assignment create \
    --role "Key Vault Administrator" \
    --assignee <user-or-app-object-id> \
    --scope <key-vault-resource-id>
    
  3. Run the following command to switch the vault to Azure RBAC:
    az keyvault update \
    --name <key-vault-name> \
    --resource-group <resource-group-name> \
    --enable-rbac-authorization true
    

    Replace <user-or-app-object-id>, <key-vault-resource-id>, <key-vault-name> and <resource-group-name> with your actual values. Choose the role that matches the access each user or application needs.

Updated on 04 November, 2026