Error when trying to do the exercise of: Creating key vault for storing secret

Janeks Malinovskis 0 Reputation points
2024-05-25T18:38:31.06+00:00

https://learn.microsoft.com/en-us/training/modules/manage-secrets-with-azure-key-vault/3-creating-vaults-storing-secrets

Step #1: finished successfully
Step #2: failing with error:
(Forbidden) Caller is not authorized to perform action on resource.
If role assignments, deny assignments or role definitions were changed recently, please observe propagation time.

p.s. I was using the same correct vault name.

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,550 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Goud Juvvadi 975 Reputation points Microsoft Vendor
    2024-05-28T10:38:10.7033333+00:00

    Hi Janeks Malinovskis,

    Thank you for reaching out to Microsoft Q & A forum.

    It seems like you are facing an issue with Set-AzKeyVaultSecret.

    This could be due to incorrect credentials or insufficient permissions.

    Here are some steps you can take to troubleshoot and resolve this issue:

    1.Check if you have provided the correct credentials for your account. Make sure that the account name and key are correct.

    2.Verify that you have sufficient permissions to perform the operation. You can check the role-based access control (RBAC) settings for your account to ensure that you have the necessary permissions.

    3.Check if there are any network or firewall issues that might be blocking the request. You can try to access from a different network or machine to see if the issue persists.

    After updating permission, you were able to access the Key Vault without any authorization error.

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

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Thank you.

    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.