我有一个天蓝色的站点,我正在尝试自动化 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
在我的本地机器上执行相同的工作正常。
理想情况下,我根本不必在部署的上下文中登录,但看来我必须这样做。