2016-03-23 23 views
0

我们的一个msbuilds的启动失败的前几天,出现此错误:如何解决Azure部署中的“.cscfg文件中指定的操作系统版本不活动”?

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) 

每此页面时,它看起来好像是我们的客人操作系统版本被认为是“已禁用”,由微软:https://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/

所以我更新.cscfg XML中'ServiceConfiguration'行的'osVersion ='WA-GUEST-OS-4.26_201511-02''到'osVersion =“WA-GUEST-OS-4.29_201602-01'的.cscfg文件文件。但它没有帮助。

有谁知道别的东西我可以试试?谢谢。

回答

0

使用星号符号(osVersion =“*”)似乎已解决该问题。我的构建正在重新开始。根据我的一位同事的观点,之前我们之前对客户操作系统版本进行硬编码的原因在于,为了让.NET 4.6工作,这是必要的。它可能不再需要了。

为.cscfg全线为:

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