After installing Windows Azure Powershell (October 2012 version 0.6.7), I'm receiving errors running the Set-AzureDeployment Cmdlet.
Supplying the same parameters to the Remove-AzureDeployment and New-AzureDeployment works fine.
Remove-AzureDeployment -Slot $slot -ServiceName $serviceName -Force
New-AzureDeployment -Slot $slot -Package $packageLocation -Configuration $cloudConfigLocation -label $deploymentLabel -ServiceName $serviceName
However when using the Set-AzureDeployment with the -Upgrade switch and with the same parameter values above, I get an error.
Set-AzureDeployment -Upgrade -Slot $slot -Package $packageLocation -Configuration $cloudConfigLocation -label $deploymentLabel -ServiceName $serviceName -Force
The error is:
+ CategoryInfo : CloseError: (:) [Set-AzureDeployment], ProtocolException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.HostedServices.SetAzureDeploymentCommand
Catching the inner exception shows:
<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>
Can anyone offer advice as to what may be wrong?
The script I am attempting to run is the PublishCloudService.ps1 from here.