如何暂停了Azure的应用服务计划? [英] How do I pause an Azure App Service Plan?

查看:139
本文介绍了如何暂停了Azure的应用服务计划?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想到天青的优势之一是,我可以打开时,我希望他们可关闭视服务和。

I thought one of the advantages of Azure was that I could turn services on and off depending on when I want them to be available.

不过,我不能看到如何暂停我的应用程序服务计划。
这可能吗?

However I cant see how to pause my App Service Plan. Is it possible?

我想使用的S1层,这样我可以用它所提供发挥。不过,我希望能够暂停的时候我不使用它的成本积聚。

I want to use the S1 tier so that I can play with what it offers. However I want to be able to pause the cost accumulation when I am not using it.

我从应用服务定价的帮助了一个应用程序将仍需支付,即使是处于停止状态。

I see from the app service pricing help 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?

推荐答案

如果你把你的托管计划到自由层,你会停止充电吧。不过,如果你有事情像部署插槽和证书,这些都将被删除。

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.

要打开和关闭服务的能力,更多的是做能够扩展服务,所以如果你需要50台服务器一个小时就可以轻松做到这一点。

The ability to turn services on and off, is more to do with being able to scale services, so if you need 50 servers for an hour you can easily do that.

你可以做些什么来让你的临时解决方案是创建一个部署脚本,中使用PowerShell或的资源管理模板那么你可以部署解决方案整整只要你需要它,然后再删除它,当你不知道。在这个意义上,您可以随心所欲地开启和关闭您的服务。

What you can do to make your solution temporary is to create a deployment script, using Powershell or Resource manager 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 at a whim.

Azure提供积木为你打造你所需要的解决方案,它是由你来弄清楚如何最好地利用这些积木打造你所寻求的解决方案。

Azure provides building blocks for you to create the solution you need, it is up to you to figure out how to best use those building blocks to create the solution you seek.

如果您想使用S1的定价计​​划,没有它,当你不使用它充电,实现这一目标的唯一途径是使用自动化。幸运的是,这是相当琐碎的实现。

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.

如果你看一下这个模板是pretty多配置的所有部署从GitHub网站到Azure上的需求。如果编辑将其配置为你的需求,你可以有一个新的Azure网站在线以2分运行脚本。

If you look at this template it is pretty much all configured to deploy a website from Github to Azure on demand. If you edit that to configure it 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.

这样做,这样你就不会失去功能,并且可能学习了不少关于什么是可能的Azure的沿途。

Doing it this way you would loose no functionality, and probably learn quite a bit about what is possible with Azure along the way.

这是应用服务计划是一个Web应用程序在硬件上运行。在免费和共享您的三层Web应用程序与其他Web应用程序的实例。在其他层有一个专用的虚拟机。这是你为此付出的虚拟机。在这种情况下,它无关紧要是否不会对您的应用程序或服务没有运行网络应用程序,你还是有一个虚拟机运行,你将被收取的。

An app service plan is the hardware that a web app runs on. In the free and shared tier your web apps share an instance with other web apps. In the other tiers you have a dedicated virtual machine. It is this virtual machine that you pay for. In that case it is irrelevant whether or not you have web apps running on your app service or not, you still have a virtual machine running and you will be charged for that.

要通过PowerShell的改变应用服务计划,可以运行下面的命令

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

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

这篇关于如何暂停了Azure的应用服务计划?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆