为什么使用 Azure Functions 创建应用服务计划和存储帐户?

Why Consumption Azure Functions create an App Service Plan and Storage Account?

当您创建 Azure Functions Consumption 应用程序时,平台会自动创建一个免费的应用程序服务计划。消费函数不应该是可扩展的和无服务器的,这样你就不必处理服务器群了吗?

请参阅此文档:Azure Functions Consumption plan hosting

When you're using the Consumption plan, instances of the Azure Functions host are dynamically added and removed based on the number of incoming events. The Consumption plan is the fully serverless hosting option for Azure Functions.

[...]

The general recommendation is for each function app to have its own Consumption plan. However, if needed, function apps in the same region can be assigned to the same Consumption plan.

所以它可扩展的,它无服务器的,你处理服务器农场。您只需指定消费计划即可开始!

默认情况下,会为您创建消费计划。您没有任何用于配置资源或扩展应用服务计划的选项,它只是为了在消费计划中启用您的功能 运行。

有根据的猜测:
这可能是必要的,因为 Function App 是 App Service 的特殊版本。就像应用服务需要应用服务计划一样,功能应用也需要应用服务计划。
只是为了开玩笑,打开 Azure 门户到具有函数应用程序的订阅并打开 App Services。请参阅该列表中的功能应用...?

就存储帐户而言,

Azure Functions requires an Azure Storage account when you create a function app instance.

[...]

When creating a function app, you must create or link to a general-purpose Azure Storage account that supports Blob, Queue, and Table storage. This is because Functions relies on Azure Storage for operations such as managing triggers and logging function executions.

更多信息:Storage considerations for Azure Functions