在Visual Studio 2019中调试我们的应用程序时,我无法访问我们的Azure Key Vault。引发以下异常:
Parameters: Connection String: [No connection string specified] Exception Message: Tried to get token using Managed Service Identity. Unable to connect to the Managed Service Identity (MSI) endpoint. Please check that you are running on an Azure resource that has MSI setup
异常消息很明显。这是我尝试过的:
Managed Service Identity
?是的,我有。 az login
命令。 Azure Service Authentication
的正确用户身份执行应用程序?是的,我有。奇怪的是,当我使用dotnet run
运行应用程序时,一切都按预期运行。尝试使用Azure CLI揭秘秘密也可以。
对于如何解决此问题的其他建议,我们深表感谢。