Windows Azure Web Site (19) Azure Web App链接到VSTS

  《Windows Azure Platform 系列文章目录

  之前遇到一个问题,客户在海外使用

  我参考了一下国内Azure China的文档:https://school.azure.cn/blog/495,自己验证了一下,做了细微的修改。

  1.我们需要设置从海外VSTS,到国内Azure China的链接。需要注册到Azure AD里

  具体的脚本:https://github.com/leizhang1984/AzureChinaPowerShell/blob/master/ARM/4VSTStoAzureChina/RegisterVsts2AzureChina.txt

  

  2.将上面的脚本下载到D盘根目录。并且将扩展名重命名为ps1。

  

  3.安装Azure PowerShell,并执行下面的命令

D:RegisterVsts2Mooncake.ps1 -subscriptionName '[YourAzureChinaSubscriptionName]' -password '[YourPassword]' -resourceGroupName '[YourAzureChinaResourceGroup]'

  注意:第一个参数subscriptionName是订阅名称

  password是密码。注意这个密码不一定是AzureChina登录的密码,我们可以设置为其他的密码。请牢记这个密码,我们会在步骤7中使用

  resourceGroupName是资源组名称

  4.执行完毕后,如下图:

  

  5.我们登录VSTS,然后选择

  

  6.在弹出的窗口中,选择use the full version of the endpoint dialog

  

  7.然后将步骤4中的输出结果,输入到下图中对应的内容。

  

  点击上图的Verify Connection,就验证通过,可以链接到Azure China了

原文地址:https://www.cnblogs.com/threestone/p/8576547.html