2

Windows Azure がホストするサービスのインスタンス数をスケールアップするときに、WAPP PowerShell コマンドレットを使用すると、次のエラーが発生することがあります。

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 を呼び出します。

4

1 に答える 1

0

エラーの意味がわかりませんでした。私たちが思いついた解決策は、フラグを介して操作が完了するのを待つのをやめ、代わりに、すべての応答が操作が完了したことを示すまで、-WaitToCompleteを使用してデプロイのステータスをポーリングすることでした。Get-OperationStatus

于 2012-02-21T13:09:41.200 に答える