简体   繁体   中英

Azure Key Vault working in locally but getting 403 forbidden error in azure cloud

I am new to Azure. I want to use Azure KeyVault to store secrets like passwords. I have successfully created All steps which mentioned in Microsoft website. And also able to get secrets (passwords from KeyVault ) in our local environment by using Springboot application.properties .

But getting 403 Access denied error when I tried the same in Azure Cloud. It is not generated in local tomcat server. Please suggest me to resolve this issue.

Expected password, but getting 403 .

In PowerShell run these commands to verify if key vault has right access permissions.

  • Get-AzureRmKeyVault -VaultName check what objectIds you see
  • Get-AzureRmADServicePrincipal -ObjectId check if your service's service principle (from AAD) is listed there.

you can also check out this link which i think may help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM