简体   繁体   English

从命令行使用用户名和密码以天蓝色登录

[英]login in azure with username and password from command line

I am working on Azure CLI from command line. 我正在从命令行使用Azure CLI。 To login in, there is command 要登录,有命令

azure login -u <username>

I am executing this command from php and php is not able to identify that it is asking for password hence it stops execution. 我正在从php执行此命令,并且php无法识别它要求输入密码,因此它停止执行。 is there any way that we can login with username and password or is there any other way to solve this problem? 有什么办法可以使用用户名和密码登录,还是有其他解决方法?

You can try to use the following command to download the account publishsettings: 您可以尝试使用以下命令下载帐户publishsettings:

azure account download

and then, use the following command to import the publishsettings: 然后,使用以下命令导入publishsettings:

azure account import <path to your .publishsettings file>

See more details at: https://azure.microsoft.com/en-gb/documentation/articles/xplat-cli-connect/#configure , in this way, you only need to provide the path of your publishsettings file, Hope this could help you. 在以下位置查看更多详细信息: https : //azure.microsoft.com/en-gb/documentation/articles/xplat-cli-connect/#configure ,通过这种方式,您只需要提供publishsettings文件的路径,希望如此可以帮助您。

To use Azure CLI on you system and use Azure PHP sdk. 要在系统上使用Azure CLI并使用Azure PHP sdk。

Please refer the link 请参考链接

http://phpazure.codeplex.com/ http://phpazure.codeplex.com/

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

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