3

Azure プロセスへのデプロイを自動化しようとしています。PowerShellスクリプトの例を使用して、Googleのさまざまな ページを調べました。

I've narrowed down the problem to this part:

# publish - here I get 500 server error -(
New-AzureDeployment -Slot "Staging" -Package $package -Configuration $configuration -ServiceName $service

And I get error message: error message

Looking at $Error variable (specifically at this $Error[0].Exception.InnerException.Response) I can see that the request timed out: Error request

Operation could not be completed within the specified time

I have tried uploading package file (4 Mb - plain vanilla MVC4 app from Empty template) to azure and in in $package variable giving the url:

New-AzureDeployment -Slot "Staging" -Package "https://blah.blob.core.windows.net/shared/blah.cspkg" -Configuration $configuration -ServiceName $service

And the publish went almost instantly and now I can access the staging instance with the latest changes.

Does this mean that Azure publishing service has timeout period and my shady internet connection speed does not allow to push the file within this timeout? It took me 4 minutes to upload the file via CoudXplorer and this is the plain vanilla app with nothing in it. The real app is 10 times larger.

そのためにできることはありますか?それとも、最初にパッケージを Azure ストレージにアップロードして、そこから発行する必要がありますか?

更新が確認されました - これはインターネット接続です。Azure クラウドで仮想マシンをスピンアップし、そこで必要なすべてのスクリプトをセットアップし、パッケージをローカル ファイルとしてデプロイしようとしましたが、正常に機能しました。期待どおりにデプロイされ、エラー メッセージは表示されませんでした。Azure さん、なぜタイムアウトを指定できないのですか? 一部の人々はまだ ADSL と 0.3Mbit のアップロード速度で生活しています -(

4

1 に答える 1

3

Management Service には API を使用します。こちらの回答を参照してください。PS からの展開で同様の問題が多数発生したため、ビルド時に展開パッケージを BLOB にコピーし、そこから PS または REST API コマンドを実行して展開しました。このSO answerには、ビルドと BLOB へのコピーの例があります。

于 2013-05-15T03:11:50.027 に答える