Administrator has no key create or view rights in Azure Managed HSM

mikedunphy 46 Reputation points
2023-02-07T15:41:41.4633333+00:00

After provisioning and successfully activating a managed HSM, I cannot generate or import keys and get the following error.

Not authorized to access Microsoft.KeyVault/managedHsm/keys/read/action on '/keys'

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,135 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 34,311 Reputation points Microsoft Employee
    2023-02-08T23:56:20.56+00:00

    Hi mikedunphy ,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue:

    After provisioning and successfully activating a managed HSM using an administrator account, you could not generate or import keys and received the following error:

    Not authorized to access Microsoft.KeyVault/managedHsm/keys/read/action on '/keys'

    Solution:

    Managed HSM administrators don't have the ability to do key operations, so you needed to add an additional role that did. The correct role for this would be the Managed HSM Crypto User role, which can perform the action keys/read/action. For more information, see Managed HSM local RBAC built-in roles.

    If you have any other questions or are running into more Azure Managed HSM issues, please let me know.

    Thank you again for your time and patience throughout this issue.

    -

    Please remember to "Accept the Answer" if the answer accurately represents the resolution, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. mikedunphy 46 Reputation points
    2023-02-08T17:17:31.84+00:00

    Figured it out. Managed HSM administrators don't have the ability to do key operations. Needed to add an additional role that did.

    0 comments No comments