Access Policy not available

Shwetha C G 0 Reputation points
2024-01-21T14:17:02.37+00:00

Access policies are not available, when i tried to change the access configuration to "Vault access policy" i am getting error Insufficient permission where as i have been asses as Key Vault administrator role. Can you help on to assign the access policies

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
904 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Durkan 12,221 Reputation points MVP
    2024-01-21T15:00:09.78+00:00

    Hi

    Key Vault Administrator and other built-in RBAC roles operate at Data Plane level for accessing and managing Key Vault data (certificates/keys/secrets):

    https://learn.microsoft.com/en-us/azure/key-vault/general/rbac-guide?tabs=azure-cli#azure-built-in-roles-for-key-vault-data-plane-operations?wt.mc_id=AZ-MVP-5005255

    For Management Plane access, you can either grant Owner/Contributor access to the Subscription/Management Group/Resource Group that the Key Vault sits in, or else you'd need to create a Custom Role to achieve this (this would be best practice).

    Sample Custom Role can be created using the code below:

    # Define the custom role JSON
    $roleDefinition = '{
        "Name": "KeyVaultManagementRole",
        "IsCustom": true,
        "Description": "Allows management of Azure Key Vault Management plane",
        "Actions": [
            "Microsoft.KeyVault/vaults/*"
        ],
        "NotActions": [],
        "AssignableScopes": ["/subscriptions/{subscriptionId}"]
    }'
    
    # Create the custom role
    New-AzRoleDefinition -InputObject (ConvertFrom-Json $roleDefinition)
    
    

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.