简体   繁体   中英

login in azure with username and password from command line

I am working on Azure CLI from command line. 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. 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:

azure account download

and then, use the following command to import the 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.

To use Azure CLI on you system and use Azure PHP sdk.

Please refer the link

http://phpazure.codeplex.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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