【发布时间】:2018-02-28 15:32:49
【问题描述】:
我已在应用服务上启用托管服务标识。但是,我的 WebJobs 似乎无法访问密钥。
他们报告:
Tried the following 3 methods to get an access token, but none of them worked.
Parameters: Connectionstring: [No connection string specified], Resource: https://vault.azure.net, Authority: . 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.
Parameters: Connectionstring: [No connection string specified], Resource: https://vault.azure.net, Authority: https://login.microsoftonline.com/common. Exception Message: Tried to get token using Active Directory Integrated Authentication. Access token could not be acquired. password_required_for_managed_user: Password is required for managed user
Parameters: Connectionstring: [No connection string specified], Resource: https://vault.azure.net, Authority: . Exception Message: Tried to get token using Azure CLI. Access token could not be acquired. 'az' is not recognized as an internal or external command,
Kudo 不显示任何 MSI_ 环境变量。
这应该如何工作?这是现有的应用服务计划。
【问题讨论】:
-
我想补充一点,我今天遇到了这个问题,在检查一切正常后,我尝试重新启动应用服务。它解决了问题。
标签: azure azure-webjobs azure-web-app-service azure-keyvault azure-managed-identity