{tocify} $title={Table of Contents}
But I had created the connection
Error/Issue:
While trying to Get Secret from Key vault, following error was presented
"Operation failed because client does not have permission to perform the operation on the key vault. Please check your permissions in the key vault access policies"
Why it happened
As the error says, client does not have permission to perform the operation on the key vault. Please check your permissions in the key vault access policies - thus just creating a connection to Keyvault does not give you the permission .
When connection is created only Authentication happens but to access the Key Vault artifacts Authorization is to be done.
And you authorize by adding the service principal of an Identiy in an Access policy of Keyvault along with selecting what all actions can be performed.
What to do
Click on Access policies section, select Permission model as Vault access policy and click on Add Access Policy
Added the logic app service principal in Access Policy of KeyVault.
Permissions should be selected as per the need and as I needed to see the list of secrets and get the value of secret - selected both as can be seen in below image.
Did save and the issue was gone.
If you have questions or suggestions, feel free to do in comments section below !!!
Do share if you find this helpful .......
Knowledge Sharing is Caring !!!!!!
Related Post
- Getting Started with Logic Apps - Enterprise Application Integration
- Getting Started with Logic Apps - EDI X12 Fundamentals
- Getting Started with Logic Apps - Fundamentals
- Getting Started with Logic Apps - AS2
- Getting Started with Logic Apps - XML to EDI X12
Tags:
Azure Key Vault error