2016-03-23 21 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"> 
相關問題