azure - 如何使用azure功能启动停止azure应用程序服务计划

标签 azure asp.net-core azure-functions azure-app-service-plans

我在 Microsoft 官方文档 Decide when to use Azure Functions 中发现了以下声明:

Micro-billing: Traditional computing bills for a block of time like paying a monthly or annual rate for website hosting. This method of billing is convenient but isn't always cost effective. Even if a customer's website gets only one hit a day, they still pay for a full day's worth of availability. With serverless computing, they pay only for the time their code runs. If no active function executions occur, they're not charged. For example, if the code runs once a day for two minutes, they're charged for one execution and two minutes of computing time.

对我来说,听起来应该可以根据发送到服务器以配置网页的请求来启动和停止 Azure 应用服务计划。 我的问题是:是否可以做到这一点?如果可以,如何做到。

我正在考虑的 Azure 功能应该触发启动我的应用服务计划,以便网站可以按需运行。

非常感谢!

最佳答案

无法停止/启动/暂停应用服务计划。根据配置的层在其存在期间进行计费。启动或停止包含的应用实例不会影响计费。

如果您想避免支付应用服务计划费用,您可以考虑其他托管模型,包括静态 Web 应用或在 Azure Functions 中托管。

关于azure - 如何使用azure功能启动停止azure应用程序服务计划,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68021952/

相关文章:

python - 如何并行化 Azure ML 服务计算集群上的工作?

git - 如何知道链接到azure函数的github存储库以进行持续部署

asp.net - Azure webrole充当第三方api的代理

reactjs - react + antd TS2694 : Namespace 'React' has no exported member

c# - Identity Core 与 Entity Framework 6

c# - Azure 函数-Microsoft.AspNetCore.Server.Kestrel.Core : Request body too large

c# - Entity Framework 并发和 Azure 函数

c# - Azure - 无法在现有服务计划上创建新的 Web 应用程序

azure - 特定的 TableController 名称不起作用

Azure 经典虚拟机。如何修复错误 : "We couldn' t complete the updates. 撤消更改。不要关掉你的电脑。”