2013-03-13 66 views
2

有沒有一種方法可以在使用[New-AzureStorageAccount] cmdlet時指定超時值?爲New-AzureStorageAccount cmdlet指定超時時間

在創建通過PowerShell中存儲帳戶,我得到這個錯誤斷斷續續......

New-AzureStorageAccount : The HTTP request to ' https://management.core.windows.net/XXXX/operations/YYYY ' has exceeded the allotted timeout of 00:00:59.9930000. The time allotted to this operation may have been a portion of a longer timeout. At C:\Temp\20130305_150221\somefile.ps1:212 char:36 + New-AzureStorageAccount <<<< + CategoryInfo : CloseError: (:) [New-AzureStorageAccount], TimeoutException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.StorageServices.NewAzureStorageAccountCommand

回答

1

有趣。目前還沒有辦法爲這個命令設置超時時間,在powershell的github存儲庫中提交sisue :: https://github.com/WindowsAzure/azure-sdk-tools/issues/1175

如果您對快速修復感興趣,因爲這是一個開源項目,應該能夠通過代碼設置超時並在VS中編譯自己的修復程序。