发布于 2018-12-17 16:54:34
您可以使用AZ CLI登录到az login,Microsoft.Azure.Services.AppAuthentication库将使用它作为尝试的方法之一。
不幸的是,这种方法不适用于NodeJS库,并且在这里被跟踪:https://github.com/Azure/azure-sdk-for-node/issues/2284
只需确保您已登录到正确的租户。
至少如果试图连接Azure Key Vault,您还需要选择使用az account set -s "My Azure Subscription name or id"订阅。
您可能需要在登录命令提示符后重新启动VS代码。
https://stackoverflow.com/questions/53819688
复制相似问题