Error: making Read request on Azure KeyVault Secret sqladminpassword: keyvault.BaseClient#GetSecret: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Forbidden" Message="The user, group or application 'appid=***;
does not have secrets get permission on key vault
Note: I am getting this error while deploying through azure pipeline, working while trying from local. Using terraform for this
I have tried the all the permission , everything is fine , how to fix it
Point Number 1
Please check if the service principal associated with your service connection has access to get secrets from your Azure key vault. If not you need to grant the Key Vault Administrator role to the service principal associated with your Azure pipelines.
Point 2
Check granted permit in terraform configuration to azure pipeline service principal