Azure登录KUDU控制台

时间:2015-03-07 01:16:55

标签: azure kudu azure-cli

我有一个天蓝色的网站,我试图自动化UI测试和成功的UI测试的网站切换。但是我在登录我的Azure网站时遇到了一些麻烦,无法进行部署。

在KUDU内部我尝试了以下内容:

npm install azure-cli -g 
azure login -u [username] -p [password]

但是我收到以下错误:

info:    Executing command login
warn:    Please note that currently you can login only via Microsoft organizational account or service principal. For instructions on how to set them up, please read http://aka.ms/Dhf67j.
info:    Authenticating...
error:   Credentials have expired, please reauthenticate
info:    Error information has been recorded to D:\home\.azure\azure.err
error:   login command failed

在我的本地方框上执行相同的工作正常。

理想情况下,我不必在部署环境中登录,但似乎我必须这样做。

1 个答案:

答案 0 :(得分:1)

您是否考虑过创建服务主体帐户? David Ebbo在这个博客上有一个很好的步骤(用于自动化CI过程):" Automating Azure on your CI server using a Service Principal"