Because China Azure and global azure belong to different services, the commands that apply to global azure are not fully applicable to China Azure. Currently, theadd-azureaccount command address points to global, and we can connect to China Azure via the import-azurepublishsettingsfile command.
The steps are as follows:
1. Download and install Windows Azure powershell:http://www from the official website page. windowsazure.cn/zh-cn/downloads/#cmd-line-tools
2. After installation, run as Administrator, right click on the PowerShell icon and select Run as Administrator;
3. Execute the command get-azurepublishsettingsfile-environment "Azurechinacloud" To download your Windows Azure subscription publishing profile from the open page;
4. Execute the Import-azurepublishsettingsfile "Publish profile local Storage path" in PowerShell;
PowerShell connects to China Azure