Appveyor を使用して、Web デプロイを使用して aspnet5 (rc1-final) サイトを Azure Web アプリ (サイト) にデプロイしています。デプロイの手順は問題なく機能しますが、Azure portal を使用してサイトを手動で再起動する必要があり、かなり面倒です。
私が読んだのは、Web アプリが自動的に再起動しないということですか?
PowerShell を使用してサイトを再起動しようとしましたが、うまくいかないようです。または、何か問題がありますか?
これは、私が使用する atm の powershell スクリプトです。
after_deploy:
- ps: Disable-AzureDataCollection
- ps: Select-AzureSubscription -Current -SubscriptionName "Visual Studio Premium with MSDN"
- ps: Restart-AzureWebsite -Name "sitename"
ただ使ってみたのです- ps: Restart-AzureWebsite -Name "sitename"
が、Azureがサブスクリプション名について文句を言ったので、それを追加しました。MSDN で Visual Studio Premium を使用していますが、サブスクリプション名として機能しないことは明らかですか?
Select-AzureSubscription : The subscription name Visual Studio Premium with MSDN doesn't exist.
PowerShell を使用してサイトを再起動することは可能ですか、それとも行き止まりですか?