【问题标题】:What does 'the current update to this deployment has been preempted' error mean in Windows Azure?Windows Azure 中的“此部署的当前更新已被抢占”错误是什么意思?
【发布时间】:2012-01-14 00:55:46
【问题描述】:

在扩展 Windows Azure 托管服务的实例计数时,我在使用 WAPP powershell cmdlets 时偶尔会收到以下错误:

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。

【问题讨论】:

    标签: powershell azure powershell-2.0 azure-web-roles


    【解决方案1】:

    我们没有找出错误的含义。我们提出的解决方案是停止通过-WaitToComplete 标志等待操作完成,而是使用Get-OperationStatus 轮询部署状态,直到所有响应都表示操作已完成。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-07
      • 2020-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多