Forum Discussion
Mark Nagie
Feb 13, 2018Copper Contributor
scheduled startup and shutdown for web app
I am looking to a way to setup something that will allow me to schedule a power on and power off of my web app resource
7 Replies
Sort By
- Kent GaardmandIron Contributoris this for billing purposes ? if that is the case stopping the web app will not reduce you cost. the billing is tied to the app service plan.
- Pablo R. OrtizIron Contributorif you deallocate the VM then it stops charging
https://blogs.technet.microsoft.com/knightly/2017/10/13/find-azure-vms-that-are-shut-down-but-not-deallocated/- Vineet AroraBrass Contributor
Hi Pablo,
Webapp is not a VM at least from pricing prospective. So, stopping a webapp will not reduce cost as Kent mentioned.
Thanks,
- Pablo R. OrtizIron Contributoryou can use Powershell cmdlets Start-AzureRMWebApp and Stop-AzureRMWebApp, but better than that is using an automation account with a Runbook. You can find some runbook templates for start/stop web apps in the gallery
https://docs.microsoft.com/en-us/azure/automation/automation-runbook-gallery- Mark NagieCopper Contributor
I am trying to reduce cost. Will the shutdown of the web app help? From what I see it won't.
- praveshdevCopper Contributor
Mark Nagie if you want to refrain from the cost, you have to create a schedule to automatic scaling down to free tier when you are not using your app service plan, and scaling up when you are using. You can write automated powershell script and schedule in a runbook as well into Azure automation account.
Follow this github resource
https://github.com/jraps20/jrap-AzureVerticalScaling