一:針對傳統的的Azure 的登陸介面: (ASM)

1. 正常來說是 現在本地建立證書檔案,然後上傳檔案,以便本地計算機和Azure建立可靠的安全連線

Get-AzurePublishSettingsFile -Environment AzureChinaCloud  <國內世紀互聯版本>

Get-AzurePublishSettingsFile -Environment "AzureCloud"    <國際版本>

Import-AzurePublishSettingsFile <PathToFile>

2.也可以:
Add-AzureAccount -Environment AzureChinaCloud  -<國內世紀互聯>

Add-AzureAccount  <國際版本>

在彈出的視窗輸入賬號和密碼直接建立本地到Azure 的一個安全連線

二: 針對目前的新的portal介面,(ARM)

Add-AzureRmAccount -EnvironmentName AzureChinaCloud

#This is For Azure China All Powershell command

$userName = "[YourUserName]"
$securePassword = ConvertTo-SecureString -String "[YourPassword]" -AsPlainText -Force

$cred = New-Object System.Management.Automation.PSCredential($userName, $securePassword)
Add-AzureAccount -Credential $cred -Environment AzureChinaCloud
Get-AzureSubscription