surendra tomar
surendra tomar

Reputation: 47

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.

Upvotes: 1

Views: 3505

Answers (2)

PraveenLearnsEveryday
PraveenLearnsEveryday

Reputation: 595

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.

Upvotes: 1

Related Questions