如何将来自不同项目(解决方案)的多个Microsoft Azure功能部署到同一资源组 [英] How to deploy multiple Microsoft azure functions from different projects (solutions) to same resource group

查看:35
本文介绍了如何将来自不同项目(解决方案)的多个Microsoft Azure功能部署到同一资源组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我有多个具有不同功能的项目

I have multiple projects with different functions for example

解决方案A

  • 项目A
    • 功能A1
    • 功能A2

    解决方案B

    • 项目B
      • 功能B1
      • 功能B2

      我有1个具有Project A功能的资源组(R1).如果我将Project B功能部署到资源组"R1",则将其删除Project A功能并将其替换为Project 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.

      默认情况下,您的函数将被覆盖,这是因为部署时您选择 Select Existing 的值将 Delete existing files 设置为true.

      Your function are overwritten by default is because the value Delete existing files is set to true when you deploy you choose Select Existing.

      因此您可以编辑您的发布配置文件设置".取消选中删除目标位置的其他文件.

      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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆