【Azure Cloud Service】VS 2019 发布云服务报错,有什么其它办法发布呢? - LuBu0505/My-Code GitHub Wiki

问题描述

VS 2019 /VS 2022 直接发布云服务(外延) 报错,登录Azure账号后,加载资源信息时候报错 “An error occurred while loading location resource. 加载位置时候出错”。 image.png  有什么其它方式来发布云服务吗?

问题解答

除了使用Visual Studio 2019/2022 等IDE直接部署的方式外,云服务也可以通过门户,PowerShell,或者ARM等多种方式部署:

  1. 在 Visual Studio 中创建并部署到云服务(外延支持):https://learn.microsoft.com/zh-cn/visualstudio/azure/cloud-services-extended-support?view=vs-2022&context=%2Fazure%2Fcloud-services-extended-support%2Fcontext%2Fcontext#publish-to-cloud-services-extended-support 
  2. 使用 Azure 门户部署 Azure 云服务(外延支持):https://learn.microsoft.com/zh-cn/azure/cloud-services-extended-support/deploy-portal?view=vs-2022#deploy-a-cloud-services-extended-support
  3. 使用 Azure PowerShell 部署云服务(外延支持):https://learn.microsoft.com/zh-cn/azure/cloud-services-extended-support/deploy-powershell?view=vs-2022#deploy-a-cloud-services-extended-support

而VS 2019无法发布云服务到中国区Azure中,这是一个Bug。经过确认,这个问题会在VS 2022 17.10版本中修复。 image.png

Visual Studio 2022 Preview Release Notes : https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes-preview#visual-studio-2022-version-1710-preview-releases

当在复杂的环境中面临问题,格物之道需:浊而静之徐清,安以动之徐生。 云中,恰是如此!