安装了Windows Azure Powershell(2012年10月版本0.6.7)后,运行Set-AzureDeployment Cmdlet时出现错误。
将相同的参数提供给Remove-AzureDeployment和New-AzureDeployment可以正常工作。 Remove-AzureDeployment -Slot $slot -ServiceName $serviceName -Force New-AzureDeployment -Slot $slot -Package $packageLocation -Configuration $cloudConfigLocation -label $deploymentLabel -ServiceName $serviceName 但是,在使用带有-Upgrade开关的Set-AzureDeployment并使用上述相同参数值时,我会收到错误提示。 Set-AzureDeployment -Upgrade -Slot $slot -Package $packageLocation -Configuration $cloudConfigLocation -label $deploymentLabel -ServiceName $serviceName -Force 错误是:
+ CategoryInfo:CloseError:(:) [Set-AzureDeployment],ProtocolException
+ FullyQualifiedErrorId:Microsoft.WindowsAzure.Management.ServiceManagement.HostedServices.SetAzureDeploymentCommand
捕获内部异常显示:
将相同的参数提供给Remove-AzureDeployment和New-AzureDeployment可以正常工作。 Remove-AzureDeployment -Slot $slot -ServiceName $serviceName -Force New-AzureDeployment -Slot $slot -Package $packageLocation -Configuration $cloudConfigLocation -label $deploymentLabel -ServiceName $serviceName 但是,在使用带有-Upgrade开关的Set-AzureDeployment并使用上述相同参数值时,我会收到错误提示。 Set-AzureDeployment -Upgrade -Slot $slot -Package $packageLocation -Configuration $cloudConfigLocation -label $deploymentLabel -ServiceName $serviceName -Force 错误是:
+ CategoryInfo:CloseError:(:) [Set-AzureDeployment],ProtocolException
+ FullyQualifiedErrorId:Microsoft.WindowsAzure.Management.ServiceManagement.HostedServices.SetAzureDeploymentCommand
捕获内部异常显示:
<Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>MissingOrIncorrectVersionHeader</Code><Message>The versioning header is not specified or was specified incorrectly.</Message></Error>
有人可以提供建议,说明可能出了什么问题吗?
我尝试运行的脚本是从这里获取的PublishCloudService.ps1。