自动部署与Functions App结合的API管理 [英] Deploy automaticcaly an API management combined with Functions App

查看:77
本文介绍了自动部署与Functions App结合的API管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过门户网站webgui,我使用API​​管理来创建一个API,该API可以调用无服务器功能应用程序.现在,我想自动部署此功能.这是我在互联网上看到的可能性:

-通过门户创建和配置api管理(这不是我所说的自动部署)
-ARM(Azure资源管理器):我找到了一个模板来创建API管理,但关于API和功能应用程序一无所知
-Terraform:与ARM相同,我不清楚如何使用Azure函数应用程序创建API
-REST Api:看来我可以创建一个API,但是我不知道是否可以通过Function App来实现

其他选择:我还将所有配置保存在git存储库中,我不知道在自动创建Api管理服务期间是否通过指定此git存储库来创建API.

希望我能清楚地回答我的问题,如果不是这样,请随时向我询问更多细节.

问候,

解决方案

导入现有Function App的UI选项更加方便,它可以提取创建新API所需的详细信息. /p>

因此,您只需要Function App的详细信息,您也应该能够使用ARM模板或PowerShell脚本.

创建ARM模板的最简单方法是从生成的模板开始,该模板在自动化脚本"(Automation script)中可用.部分.这为资源组内的所有资源生成了一个ARM模板.因此,如果您只有一个APIM实例 和Function App,您应该可以直接使用它.

如果您倾向于PowerShell脚本,则此 参考应该有帮助.


Through th portal webgui, I used API Management to create an API that enables to call a serverless Functions App. Now I would like to deploy automatically this functionnality. Here are the possibilities I saw on internet :

- Create and configure the api management through the portal (this is not what I call an automatic deployment)
- ARM (Azure Resource Manager): I found a template to create an API management but nothing about API and Functions App
- Terraform: same as ARM, it is not clear for me how to create an API with Azure function app
- REST Api : it looks like I can create an API but I don't know if it is possible from a Functions App

Other option: I also saved all my configuration in a git repository, i don't know if during automatic creation of my Api management service, create an API by specifying this git repository.

I hope I was clear in my questions, if it is not the case please don't hesitate to ask me more details.

Regards,

解决方案

The UI option to import an existing Function App is more of a convenience that extracts the details required to create a new API.

So, you just need the Function App details and you should be able to use an ARM Template or PowerShell script too.

The easiest way to create an ARM Template would be to start with the generated one available under the "Automation script" section. This generated an ARM Template for all resources within the resource group. So, if you just have an APIM instance and the Function App, you should be able to use that directly.

If you are inclined towards PowerShell scripting, this reference should help.


这篇关于自动部署与Functions App结合的API管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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