问题描述
我想问你是否有一种方法可以避免Azure的App Service计划自动缩小.例如,我使用以下定价层配置了应用服务计划":基本:1个中等;但是,如果我的应用程序闲置了一段时间,该应用程序服务计划的定价层将更改为共享".我不知道这是否是一种标准行为,从财务上讲这是合理的.但是,从技术角度来看,由于我正在使用某些在共享环境中不可用的GDI +功能(实际上,我的应用开始崩溃了),所以我确实一直都需要至少一个基本服务计划.
I would like to ask you if there is a way to avoid App Service Plans from Azure to scale down automatically. For instance, I configured an App Service Plan with the following pricing tier: Basic: 1 Medium; nevertheless, if my app is idle for some time the pricing tier of that App Service Plan changes to Shared. I do not know if that is a standard behavior, financially it makes sense; however, from a technical point of view, I do need at least a Basic Service Plan at all times since I am using some GDI+ features not available in a shared environment (where in fact my app starts crashing).
从Visual Studio内部直接开发,创建和部署Web应用程序,然后再将其扩展到基本服务计划时,默认情况下从不会更改为免费设置...但是现在在生产中使用按需付费-Go订阅我遇到了这个问题,现在变得非常烦人.
While in developing, creating and deploying directly web apps from within Visual Studio, and later scaling the app to a Basic Service Plan never changed back to Free set by default... But now in production using a Pay-As-You-Go subscription I am having this problem, that now is becoming very annoying.
我希望任何人都可以帮助我弄清楚如何避免上述行为,以使我的应用服务计划至少在基本定价层内保持有效,即使我的应用处于闲置状态也是如此;或在这种情况下,一旦应用不再闲置,至少迫使我的应用服务计划从共享扩展为基本.
I hope that anyone may help me figure out how to avoid the behavior stated earlier, in order to force my App Service Plan to remain in at least a Basic pricing tier, even while my app is idle; or in this case, at least force my App Service Plan to scale up from Shared to Basic once the app is not idle anymore.
推荐答案
对应用计划的更改不是自动的.有人在做.查看您的Azure操作日志,我敢打赌,您会找到罪魁祸首.或者,也许您对Azure帐户的支出有限制,一旦上限用尽,它会将所有内容转换为免费计划?
Changes to the App Plan are not automatic. Someone is doing them. Look into your Azure Operation logs and I bet you'll find the culprit. Or maybe you have a limit on the spend in your Azure account and it converts everything to free plan once that cap runs out?
这篇关于如何避免Azure App Service计划自动缩小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!