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 in Azure by sabby
• 4,350 points
34 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
answered Apr 3 by Prerna
• 1,940 points

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 10, 2018 in Azure by null_void
• 3,220 points
1,194 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
558 views
0 votes
1 answer

How to choose between Azure App Service and Azure Service Fabric?

Microsoft has created the document with a comparison for ...READ MORE

answered Jun 13, 2018 in Azure by null_void
• 3,220 points
201 views
0 votes
1 answer

How do I upload a picture to Windows Azure Website?

Check out this example: @model List<string> ...READ MORE

answered Jun 27 in Azure by Perry
• 17,020 points
49 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

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

answered Mar 6 in Azure by Prerna
• 1,940 points
137 views
0 votes
1 answer

Azure Storage Emulator shows error.

This blog might help with your query: http://blog.smarx.com/posts/windows-azure-storage-emulator-the-process-cannot-access-the-file-because-it-is-being-used-by-another-process Also, ...READ MORE

answered Mar 15 in Azure by Prerna
• 1,940 points
110 views
0 votes
1 answer

Friendly filename when downloading Azure blob.

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

answered Mar 15 in Azure by Prerna
• 1,940 points
50 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 in Azure by Prerna
• 1,940 points
244 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 in Azure by Prerna
• 1,940 points
65 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 in Azure by Prerna
• 1,940 points
347 views