【发布时间】:2018-06-14 05:55:52
【问题描述】:
我的要求很简单。我想通过我的 shell 脚本以非交互模式登录 Azure,但是“az login -u username -p password”命令给出了以下错误:
Get Token request returned http error: 400 and server response: {"error":"invalid_grant","error_description":"AADSTS70002: Error validating credentials. : SAML token is invalid. : The element with ID 'xxxxxx' was either unsigned or the signature was invalid.
一些网站告诉我创建一个服务主体。现在我的问题是,什么是服务主体,如何创建服务主体,以便我可以从我的 shell 脚本执行我的命令(用于创建不同的资源,如应用程序网关)?
【问题讨论】: