The Operation Is Not Allowed By RBAC

I recently tried to create a secret in my Azure key vault, but I got this error after clicking the Create button.

The operation is not allowed by RBAC.

The complete error message was as below

The operation is not allowed by RBAC. If role assignments were recently changed, please wait several minutes for role assignments to become effective.

You can see the same error message in the screenshot below.

azure key vault the operation is not allowed by rbac

Solution

Below are the steps I followed to fix this issue.

1. Log in to Azure Portal.

2. Search for Key Vault and click on the search result

the operation is not allowed by rbac.

3. Click on the key vault where you wish to create the secret.

the operation is not allowed by rbac. key vault

4. On the key vault page, click the Access control (IAM) link from the left navigation, then click on the Add role assignment option from the + Add dropdown.

key vault the operation is not allowed by rbac

5. Search for key vault Administrator. Click on the key vault Administrator option and then click on the Next button, as shown in the screenshot below.

the operation is not allowed by rbac key vault

6. Select the user, group, or service principal option and click on the + Select members link as shown in the screenshot below.

azure the operation is not allowed by rbac

Check out How To Create Secret In Azure Key Vault

7. Search for your name or email address and select it, then click on the select button.

azure key vault error the operation is not allowed by rbac

Now, the Add role assignment window will look like the one below. Click on the Review + Assign button in the screenshot below.

the operation is not allowed by rbac.

8. Click the Review + Assign button in the next window again.

Now, you can see the user was successfully added as a key vault administrator. Check out the screenshot below.

key vault secret the operation is not allowed by rbac

Now, I tried recreating the secret, and this time, I could successfully create the Azure key vault secret. See the screenshot below.

azure key vault secrets the operation is not allowed by rbac

You may also like the following articles below

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!