简体   繁体   English

无法使用 azure devops CI 管道创建 azure 计算实例

[英]Could not create azure compute instances using azure devops CI pipeline

Below is the error I am getting下面是我得到的错误

ERROR: {'Azure-cli-ml Version': '1.27.0', 'Error': AuthenticationException:错误:{'Azure-cli-ml 版本':'1.27.0','错误':AuthenticationException:

Message: Could not retrieve user token.消息:无法检索用户令牌。 Please run 'az login'请运行“az 登录”

InnerException Please run 'az login' to setup account. InnerException 请运行“az login”来设置帐户。

ErrorResponse错误响应

{ {

"error": { “错误”: {

"code": "UserError", “代码”:“用户错误”,

"inner_error": { “内部错误”:{

"code": "Authentication" “代码”:“身份验证”

}, },

"message": "Could not retrieve user token. Please run 'az login'" "message": "无法检索用户令牌。请运行 'az login'"

} }

}} }}

The possible reason is that you didn't use an available service connection for the subscription you want to create the VM in, or you didn't use the command az login in the CLI script.可能的原因是您没有为要在其中创建 VM 的订阅使用可用的服务连接,或者您没有在 CLI 脚本中使用命令az login You can choose one way from above.您可以从上面选择一种方式。

Maybe you use the YAML file to define your task, then you need to set the azureSubscription option, it sets the service connection for you.也许您使用 YAML 文件来定义您的任务,那么您需要设置azureSubscription选项,它会为您设置服务连接。 See the description of the Azure CLI task here .请在此处查看 Azure CLI 任务的描述。

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

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