Because China azure and global azure are different services, the commands for global azure do not apply completely to China azure. Currently, the add-azureaccount command address points to global. We can use the import-azurepublishsettingsfile command to connect to China azure.
The procedure is as follows:
1. Download and install Windows azure powershell: http://www.windowsazure.cn/zh-cn/downloads/#cmd-line-tools from the official website
2. Run as Administrator after installation. Right-click the powershell icon and choose "Run as administrator;
3. Run the get-azurepublishsettingsfile-Environment "azurechinacloud" command to download the publishing configuration file of your windows azure subcategory on the open page;
4. Run import-azurepublishsettingsfile in powershell to "Publish the local storage path of the configuration file ";
Powershell connection to China azure