1. Download the azure SDK. Install Azure PowerShell
Http://azure.microsoft.com/zh-cn/downloads/?rnd=1
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/58/3c/wkiom1ssyhetzmpiaab0k4espsq918.jpg "height=" 279 "/>
2. Download Azure Public settings File
get-azurepublishsettingsfile-environment "Azurechinacloud" ( Chinese version) , get-azurepublishsettingsfile-environment "Azurecloud" (International Version)
After running automatically open IE, use account login after download setting file, for example, save the file
650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image002 "src=" http://s3.51cto.com/wyfs02/M00/58/3C/wKiom1SsyHfSFyxBAABD7cokN48104.jpg "height="/>
3.import-azurepublishsettingsfile "<file location>" Import the settings file you just downloaded (the file is in the directory where the command resides )
650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image004 "src=" http://s3.51cto.com/wyfs02/M01/58/3C/wKiom1SsyHfxJA1qAADq7ZRl2mA822.jpg "height=" 225 "/>
4. Check if the connection is successful.
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/58/3c/wkiom1ssyvyihcevaadgr0s3j8g111.jpg "height=" 205 "/>
5. If you have imported multiple subscriptions, you can use Select-azuresubscription to select them. Check the subscription get-azuresubscription first
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/58/3c/wkiom1ssyhibqgdfaaf7zbqdcce818.jpg "height=" 332 "/>
6. Select the subscription.
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/58/3c/wkiom1ssyhishmkuaabt2yx7bag451.jpg "height=" 119 "/>
This article is from the "Month Missing" blog, please be sure to keep this source http://yueque.blog.51cto.com/4580340/1600136
Azure China--1 How to connect to Azure with Azure PowerShell