将 Azure 云服务更新到 OS 系列 6

Updating Azure Cloud Service to OS family 6

我正在使用 Azure DevOps 部署 .Net Web 应用程序。我想更新到基于 Windows 2019 的新 Os 系列,这样我就可以将我的项目更新到 .net 框架版本 4.7.2,如 here 所示。我已将我的云服务配置“.cscfg”文件更新为 osFamily="6",但是当我尝试部署应用程序时,即使构建成功,当我到达 Azure 管道中的发布步骤时,我也会收到此错误:

The OS family 6 you are trying to deploy is not supported by the SDK package. The SDK package supported OS families:3,4,5,1,2,98,97. Please try to deploy to a different operating system. To do this specify a different osFamily and/or osVersion in your .cscfg file.

我正在使用托管 VS2017 代理。

根据错误信息,表明OS家族6不受Hosted VS2017代理支持。

根据link你提到兼容的SDK版本应该是版本2.9.6+。

所以我的解决方法是您可以使用 Self-host agent with latest Azure SDK installed. We could download the latest Azure SDK from this link.

或者您可以尝试在 Host 2017 代理上安装 Azure SDK(未经测试)

您也可以将您的 feedback 交给 Azure Devops 团队。