简体   繁体   English

有没有办法重用相同的 Azure 存储计划和 Azure 应用服务计划来托管多个 Azure 功能?

[英]Is there a way to reuse the same Azure Storage Plan and Azure App Service Plan to host multiple Azure Functions?

I have created 1 node.js and 1 java Azure Function, using VS Code我创建了 1 个 node.js 和 1 个 java Azure Z86408593C34AF77FDD10DF92 代码

When I have deployed just these 2 functions to Azure using VS Code, I ended up with this many Azure resources (see the picture below).当我使用 VS Code 将这两个函数部署到 Azure 时,我最终得到了这么多 Azure 资源(见下图)。

Is there a way to re-use the same resource type (ie App Service, Storage Account, etc..) to host multiple Azure Functions?有没有办法重复使用相同的资源类型(即应用服务、存储帐户等)来托管多个 Azure 功能?

Azure 资源

Absolutely, we do this all the time.当然,我们一直都这样做。 We usually create resources in the portal by hand the first time and later use deployment scripts (msdeploy or Powershell) to update the resources.我们通常第一次在门户中手动创建资源,然后使用部署脚本(msdeploy 或 Powershell)来更新资源。

When you create a new Function App in the portal, you can tell Azure to put the new Function App in an existing App Service Plan and also set it to use existing storage:当您在门户中创建新的 Function 应用程序时,您可以告诉 Azure 将新的 Function 应用程序放在现有的应用程序服务计划中,并将其设置为使用现有存储:

在此处输入图像描述

You can also do this using Azure CLI if you are a CLI guy.如果您是 CLI 专家,您也可以使用 Azure CLI 执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM