Azure App Service Plan how do I pause it

0 votes

I can recall reading somewhere that I could turn services on and off depending on when I want them to be available. However, I can't pause my App Service Plan.Can anyone kindly tell if it's possible and how?

Actually, I want to use the S1 tier so that I can play with what it offers. But I want to be able to pause the cost accumulation when I am not using it. When I read the the app service pricing help I saw that an app will still be billed for even though it is in the stopped state. Yet the link also clearly states that I only pay for what I use. So how does that work?

Apr 3, 2019 in Azure by sabby
• 4,370 points
1,441 views

1 answer to this question.

0 votes

If you want to use the S1 pricing plan, and not have it charge when you are not using it, the only way of achieving that is by using automation. Fortunately, this is reasonably trivial to achieve.

If you look at this template it is pretty much all configured to deploy a website from Github to Azure on demand. If you configure it according to your needs you can have a new Azure website online with 2 minutes of running the script.

Then you would have another script that deleted it once you had finished. Doing it this way you wouldn't lose any functionality, and learn quite a bit about what is possible with Azure along the way.

If you put your hosting plan onto the free tier, you will stop being charged for it. However if you have things like deployment slots and certificates these will be deleted. The ability to turn services on and off, is more to do with being able to scale services (like if you need 50 servers for an hour you can easily do that).

What you can do to make your solution temporary is to create a deployment script, using PoweSshell or ARM templates, then you can deploy your solution for exactly as long as you need it and then delete it again when you don't. In this sense you can turn your services on and off whenever required.

To change the App Service Plan via PowerShell, you can run the following command:

Set-AzureRmAppServicePlan -ResourceGroupName $rg -Name $AppServicePlan -Tier Free


Hope this helps!

To know more about Azure, It's recommended to join Azure Training in Chennai today.

answered Apr 3, 2019 by Prerna
• 1,960 points

edited Oct 7, 2021 by Sarfaraz

Related Questions In Azure

0 votes
1 answer

How can I use “Azure File Storage” with Web App Service?

If you're looking for mapping a drive ...READ MORE

answered Aug 11, 2018 in Azure by null_void
• 3,220 points
4,242 views
0 votes
1 answer

How to create an app service plan in Azure?

Hi@akhtar, An App Service plan defines a set of computing ...READ MORE

answered Nov 17, 2020 in Azure by MD
• 95,460 points
737 views
+1 vote
2 answers

How do I establish an connection to Azure IoT Hub? Say a connection like MQTT/AMQP using Python.

Azure IoT Hub comes with 3 SDK's: Service SDK Device ...READ MORE

answered Apr 13, 2018 in Azure by null_void
• 3,220 points
2,209 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 7, 2019 in Azure by Prerna
• 1,960 points
2,789 views
0 votes
1 answer

Azure Storage Emulator shows error.

Check if you are running BitTorrent/uTorrent or similar ...READ MORE

answered Mar 16, 2019 in Azure by Prerna
• 1,960 points
1,709 views
0 votes
1 answer

Friendly filename when downloading Azure blob.

Azure blobs can be downloaded in four ...READ MORE

answered Mar 16, 2019 in Azure by Prerna
• 1,960 points
3,767 views
0 votes
1 answer

How to debug Azure 500 internal server error?

You can simply turn off custom error in ...READ MORE

answered Mar 29, 2019 in Azure by Prerna
• 1,960 points
4,844 views
0 votes
1 answer

How do disconnect to Azure SQL database if I can't access it?

Based on info  from Microsoft, I think ...READ MORE

answered Apr 26, 2019 in Azure by Prerna
• 1,960 points
1,342 views
0 votes
1 answer

How do I stream videos from Azure Blob Storage?

What you are missing is a Shared Access ...READ MORE

answered Apr 25, 2019 in Azure by Prerna
• 1,960 points
7,362 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP