1

I have a solution that builds and publishes successfully on my local machine. I have created a build definition on Team Services (using the new framework - not XAML builds) that mimics my local steps and then runs an Azure Deployment build step. The Azure Deployment build step is consistently failing on the following command:

Set-AzureDeployment -Upgrade -ServiceName website -Package C:\a\1\s\WebsiteSolution\Azure\bin\Production\ServiceDefinition.csdef -Configuration C:\a\1\s\WebsiteSolution\Azure\bin\Production\ServiceConfiguration.cscfg -Slot Production -Label 20160801.4 -ExtensionConfiguration <extensions>

With the following error:

Microsoft.WindowsAzure.Commands.Common.ComputeCloudException: BadRequest : Package conversion failed. Detailed error information: FileFormatException. ---> Hyak.Common.CloudException: BadRequest : Package conversion failed. Detailed error information: FileFormatException. at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task) at Microsoft.WindowsAzure.Management.Compute.DeploymentOperationsExtensions.UpgradeBySlot(IDeploymentOperations operations, String serviceName, DeploymentSlot deploymentSlot, DeploymentUpgradeParameters parameters) at Microsoft.WindowsAzure.Commands.Utilities.Common.ServiceManagementBaseCmdlet.ExecuteClientActionNewSM[TResult](Object input, String operationDescription, Func`1 action, Func`3 contextFactory) --- End of inner exception stack trace --- at Microsoft.WindowsAzure.Commands.Utilities.Common.ServiceManagementBaseCmdlet.ExecuteClientActionNewSM[TResult](Object input, String operationDescription, Func`1 action, Func`3 contextFactory)

Does anyone know what is going wrong or how to diagnose the problem with the generated package that makes it invalid?

4

1 回答 1

1

Azure 云服务部署任务需要 CsPkg 包文件。但是根据您的错误日志,您正在为“CsPkg”选项指定一个 csdef 文件。更新您的构建定义以正确设置“CsPkg”路径,然后再次对构建进行排队。 在此处输入图像描述

于 2016-08-02T02:15:09.000 回答