0

我有一个天蓝色的站点,我正在尝试自动化 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

在我的本地机器上执行相同的工作正常。

理想情况下,我根本不必在部署的上下文中登录,但看来我必须这样做。

4

1 回答 1

1

您是否考虑过创建服务主体帐户?David Ebbo 在此博客上进行了精彩的演练(用于自动化 CI 流程):“使用服务主体在 CI 服务器上自动化 Azure

于 2015-03-07T09:48:17.287 回答