“如何修复”;.cscfg文件中指定的操作系统版本处于非活动状态";用于Azure部署?

“如何修复”;.cscfg文件中指定的操作系统版本处于非活动状态";用于Azure部署?,azure,deployment,msbuild,cscfg,Azure,Deployment,Msbuild,Cscfg,我们的一个MSBuild几天前开始失败,出现以下错误: The polling operation Create Deployment failed with the error: (400) BadRequest. Error Code: BadRequest Message: The OS version specified in the .cscfg file is inactive. This means that it cannot currently be used to creat

我们的一个MSBuild几天前开始失败,出现以下错误:

The polling operation Create Deployment failed with the error: (400) BadRequest. Error Code: BadRequest Message: The OS version specified in the .cscfg file is inactive. This means that it cannot currently be used to create, update or upgrade a deployment.
The deployment failed. Check the logs for exceptions that may have caused this failure.

Exception Message: An attempted http request against URI returned an error: (400) BadRequest. Additional Exception Information: Error Code: BadRequest Message: The OS version specified in the .cscfg file is inactive. This means that it cannot currently be used to create, update or upgrade a deployment. (type AzureHttpRequestException) Exception Stack Trace: at Microsoft.TeamFoundation.Deployment.Workflow.AzureManagement.v1_7.OperationStatusInfo.EnsureSuccessStatus(Uri requestUri) at Microsoft.TeamFoundation.Deployment.Workflow.Activities.ReportFailedPollResultAndThrow.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
在本页中,我们的来宾操作系统版本似乎被Microsoft视为“禁用”:

因此,我将.cscfg XML文件中“ServiceConfiguration”行的.cscfg文件从“osVersion=“WA-GUEST-OS-4.26_201511-02”更新为“osVersion=“WA-GUEST-OS-4.29_201602-01”。但这没用


有人知道我可以试试别的吗?谢谢。

使用星号符号(osVersion=“*”)似乎已经解决了这个问题。我的构建又开始工作了

据我的一位同事说,我们之前硬编码来宾操作系统版本的原因是为了让.NET4.6正常工作,这是必要的。这可能不再必要了

.cscfg的完整行是:

<ServiceConfiguration serviceName="OurCompany.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="4" osVersion="*" schemaVersion="2015-04.2.6">

使用星号符号(osVersion=“*”)似乎已经解决了这个问题。我的构建又开始工作了

据我的一位同事说,我们之前硬编码来宾操作系统版本的原因是为了让.NET4.6正常工作,这是必要的。这可能不再必要了

.cscfg的完整行是:

<ServiceConfiguration serviceName="OurCompany.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="4" osVersion="*" schemaVersion="2015-04.2.6">