在扩展 Windows Azure 托管服务的实例计数时,我在使用WAPP powershell cmdlet时偶尔会收到以下错误:
Get-OperationStatus : Failed: The current update to this deployment has been
preempted.At
D:\TFS\12\Deploy-Api\Sources\CloudServices\BuildProcessTemplates\DeploymentScripts\ChangeAllRolesInstanceCount.ps1:64 char:120
+ $deployment | Set-DeploymentConfiguration {$deployment.RolesConfiguration}
-ErrorVariable +err | Get-OperationStatus << -WaitToComplete -ErrorVariable +err;
+ CategoryInfo : CloseError: (:) [Get-OperationStatus], Exception
+ FullyQualifiedErrorId :
Microsoft.WindowsAzure.Samples.ManagementTools.PowerShell.Services.Common.GetOperationStatusCommand
我通过更改配置中的实例计数来扩大规模,然后使用新值调用 Set-DeploymentConfiguration。