如何将不同项目(解决方案)中的多个 Microsoft azure 功能部署到同一资源组 [英] How to deploy multiple Microsoft azure functions from different projects (solutions) to same resource group
问题描述
例如,我有多个具有不同功能的项目
I have multiple projects with different functions for example
解决方案一
- 项目 A
- 功能 A1
- 功能 A2
解决方案 B
- 项目 B
- 功能 B1
- 功能 B2
我有 1 个具有项目 A 功能的资源组 (R1).如果我将项目 B 功能部署到资源组R1",它会删除项目 A 功能并将其替换为项目 B 功能.
I have 1 Resource Group (R1) which has Project A functions. If I deploy Project B functions to Resource Group "R1" its removing Project A functions and replacing it with Project B functions.
有没有办法将项目 A 和项目 B 的功能一起部署到同一个资源组 (R1)?
Is there way to deploy functions from both Project A and Project B together to same Resource Group (R1)?
推荐答案
我用 Visual Studio 测试过,效果很好.
I test with Visual Studio and it works well.
默认情况下会覆盖您的函数是因为在部署时将值
Delete existing files
设置为 true,您选择Select Existing
.Your function are overwritten by default is because the value
Delete existing files
is set to true when you deploy you chooseSelect Existing
.这样您就可以编辑您的发布配置文件设置.取消选中
Remove additional files at destination
.So yo could Edit your Publish Profile Settings. Uncheck the
Remove additional files at destination
.然后您将能够将它们一起部署.但是,推荐的方法是将所有内容部署为一个包.
Then you will be able to deploy them together. However the recommend way is to deploy everything as one package.
这篇关于如何将不同项目(解决方案)中的多个 Microsoft azure 功能部署到同一资源组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!