How to restart Azure Web App with schedule

Viewed 5138

I would like to restart my Azure Web App on 06:00 everyday.

I find a reference from Azure App Services: Automate Application restart using Web Job

But, there's some error in this post.

  • Save-AzureProfile => Save-AzureRmContext
  • Select-AzureRmProfile => Import-AzureRmContext

After fix this, run at local ,it's perfect.

When i create a web job on my Azure Web App, that get a error

InvalidOperation

Looks like it's not support Stop-AzureRmWebApp

Is there a soluction?

1 Answers
Related