简体   繁体   English

Azure Key Vault 在本地工作,但在 azure 云中出现 403 禁止错误

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

I am new to Azure.我是 Azure 的新手。 I want to use Azure KeyVault to store secrets like passwords.我想使用 Azure KeyVault来存储密码等机密。 I have successfully created All steps which mentioned in Microsoft website.我已经成功创建了 Microsoft 网站中提到的所有步骤。 And also able to get secrets (passwords from KeyVault ) in our local environment by using Springboot application.properties .并且还能够通过使用Springboot application.properties 在我们的本地环境中获取机密(来自KeyVault密码)。

But getting 403 Access denied error when I tried the same in Azure Cloud.但是当我在 Azure Cloud 中尝试同样的操作时出现403 Access denied错误。 It is not generated in local tomcat server.它不是在本地 tomcat 服务器中生成的。 Please suggest me to resolve this issue.请建议我解决这个问题。

Expected password, but getting 403 .预期的密码,但得到403

In PowerShell run these commands to verify if key vault has right access permissions.在 PowerShell 中运行这些命令以验证 Key Vault 是否具有正确的访问权限。

  • Get-AzureRmKeyVault -VaultName check what objectIds you see Get-AzureRmKeyVault -VaultName 检查您看到的 objectIds
  • Get-AzureRmADServicePrincipal -ObjectId check if your service's service principle (from AAD) is listed there. Get-AzureRmADServicePrincipal -ObjectId 检查您的服务的服务原则(来自 AAD)是否在那里列出。

you can also check out this link which i think may help you.您也可以查看此链接,我认为它可能对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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