Azure功能的ARM模板 [英] ARM template for Azure Function

查看:86
本文介绍了Azure功能的ARM模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在为我们的服务/产品规划高可用性/多区域故障转移。

I am planning for High availability/Multi-region failover for our services/products.

当前场景:

资源组包含以下组件:

1。 25个Azure功能(预计至少增长到100个)

1. 25 Azure Functions (Expected to grow atleast till 100)

2。存储

3。 Redis缓存

3. Redis Cache

4。 App Insights

4. App Insights

5。应用服务计划(适用于功能)

5. App service Plan (For Functions)

截至目前,我为每个Azure功能提供了25个ARM模板。除了函数之外,这些ARM模板还具有其他资源(存储,Redis缓存,应用程序洞察和应用程序服务计划)。每当需要
用于新的Azure功能时,我的ARM模板会创建一个新的Azure功能,并且所有上述资源也会逐步部署。

由于我们正在计划高可用性,多区域故障转移,我正在寻找使用单个ARM模板部署所有25个Azure功能的最佳选择在一个区域(可以相应地复制到次要的
区域)。我还必须确保在部署期间,这些Azure功能都不会影响停机时间。 

注意:我的每个Azure功能都通过单独的管道进行部署。

NOTE: Each of my Azure Function is deployed through a individual pipeline.

推荐答案

 

Hi, 

当你导航到Portal中的资源组时,你会看到一个"自动化脚本"。 "设置"下左侧的选项。使用它,您应该能够生成包含您的函数的ARM模板以及资源组中的其他
资源。拥有此模板后,您应该能够将其部署在位于其他区域的其他资源组中。 

When you navigate to your Resource Group in Portal, you should see an "Automation Script" option on the left hand side under Settings. Using this, you should be able to generate an ARM template that contains your Functions as well as the other resources in Resource Group. Once you have this template, you should be able to deploy it in a different resource group located in another region. 


这篇关于Azure功能的ARM模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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