scheduled startup and shutdown for web app

%3CLINGO-SUB%20id%3D%22lingo-sub-157777%22%20slang%3D%22en-US%22%3Escheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-157777%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20looking%20to%20a%20way%20to%20setup%20something%20that%20will%20allow%20me%20to%20schedule%26nbsp%3Ba%20power%20on%20and%20power%20off%20of%20my%20web%20app%20resource%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-157777%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Services%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-159406%22%20slang%3D%22en-US%22%3ERe%3A%20scheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-159406%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20reduce%20cost.%26nbsp%3B%20Will%20the%20shutdown%20of%20the%20web%20app%20help%3F%26nbsp%3B%26nbsp%3B%20From%20what%20I%20see%20it%20won't.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-159393%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20scheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-159393%22%20slang%3D%22en-US%22%3Eyou're%20right%2C%20I%20mixed%20concepts%20here%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-159357%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20scheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-159357%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Pablo%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWebapp%20is%20not%20a%20VM%20at%20least%20from%20pricing%20prospective.%20So%2C%20stopping%20a%20webapp%20will%20not%20reduce%20cost%20as%20Kent%20mentioned.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-159147%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20scheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-159147%22%20slang%3D%22en-US%22%3Eif%20you%20deallocate%20the%20VM%20then%20it%20stops%20charging%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fknightly%2F2017%2F10%2F13%2Ffind-azure-vms-that-are-shut-down-but-not-deallocated%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fknightly%2F2017%2F10%2F13%2Ffind-azure-vms-that-are-shut-down-but-not-deallocated%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-159135%22%20slang%3D%22en-US%22%3ERE%3A%20scheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-159135%22%20slang%3D%22en-US%22%3Eis%20this%20for%20billing%20purposes%20%3F%20if%20that%20is%20the%20case%20stopping%20the%20web%20app%20will%20not%20reduce%20you%20cost.%20the%20billing%20is%20tied%20to%20the%20app%20service%20plan.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-157796%22%20slang%3D%22en-US%22%3ERe%3A%20scheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-157796%22%20slang%3D%22en-US%22%3Eyou%20can%20use%20Powershell%20cmdlets%20Start-AzureRMWebApp%20and%20Stop-AzureRMWebApp%2C%20but%20better%20than%20that%20is%20using%20an%20automation%20account%20with%20a%20Runbook.%20You%20can%20find%20some%20runbook%20templates%20for%20start%2Fstop%20web%20apps%20in%20the%20gallery%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fautomation%2Fautomation-runbook-gallery%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fautomation%2Fautomation-runbook-gallery%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994568%22%20slang%3D%22en-US%22%3ERe%3A%20scheduled%20startup%20and%20shutdown%20for%20web%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994568%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F92093%22%20target%3D%22_blank%22%3E%40Mark%20Nagie%3C%2FA%3E%26nbsp%3Bif%20you%20want%20to%20refrain%20from%20the%20cost%2C%20you%20have%20to%20create%20a%20schedule%20to%20automatic%20scaling%20down%20to%20free%20tier%20when%20you%20are%20not%20using%20your%20app%20service%20plan%2C%20and%20scaling%20up%20when%20you%20are%20using.%20You%20can%20write%20automated%20powershell%20script%20and%20schedule%20in%20a%20runbook%20as%20well%20into%20Azure%20automation%20account.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFollow%20this%20github%20resource%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjraps20%2Fjrap-AzureVerticalScaling%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fjraps20%2Fjrap-AzureVerticalScaling%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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
Highlighted
you 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
Highlighted
is 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.
Highlighted
Highlighted

Hi Pablo,

 

Webapp is not a VM at least from pricing prospective. So, stopping a webapp will not reduce cost as Kent mentioned.

 

Thanks,

 

you're right, I mixed concepts here
Highlighted

I am trying to reduce cost.  Will the shutdown of the web app help?   From what I see it won't.

Highlighted

@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