Hello Gregory Katz,
I understand you're seeing the message "You are unauthorized to view these contents" while accessing Azure Key Vault like this:
This usually means the signed-in user doesn’t have permission to access the contents of the vault.
To check this, open the Key Vault in the Azure portal and navigate to the Access configuration
tab. Under the Permission model, you'll see whether the vault is using Role-based access control (RBAC) or Vault access policy:
If it's role-based, go to the Access control (IAM) section and assign roles like Key Vault Administrator or Key Vault Contributor to user based on your requirement:
If it's using access policies instead, open the Access policies tab and create one access policy with required permissions (like Get or List) to access secrets, keys, or certificates and assign it to user.
Once permissions are updated, try signing out and signing back in or refreshing your session.
For more information, you can refer this Microsoft Article.
Let me know if you have any other questions or need any further assistance.
Hope this clarifies things a bit!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful, which may help members with similar questions.
If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.