SylviaBABY commented on a change in pull request #784:
URL: https://github.com/apache/apisix-website/pull/784#discussion_r760803624



##########
File path: 
website/i18n/zh/docusaurus-plugin-content-blog/2021/12/01/apisix-supports-azure-functions.md
##########
@@ -0,0 +1,182 @@
+---
+title: "azure-functions 插件发布,Apache APISIX 支持 Azure Functions 集成"
+author: "Bisakh Mondal"
+authorURL: "https://github.com/bisakhmondal";
+authorImageURL: "https://avatars.githubusercontent.com/u/41498427?v=4";
+keywords: 
+- Apache APISIX
+- Azure Functions
+- Microsoft
+- Serverless
+description: 本文介绍了最近增加的一个新插件`azure-functions`,并详细说明了如何将 Azure 
Functions(一种广泛使用的 serverless 解决方案)集成到 Apache APISIX 中。
+tags: [Technology]
+---
+
+> 本文介绍了 Apache APISIX 最近增加的一个新插件`azure-functions`,并详细说明了如何将 Azure Functions 
集成到 Apache APISIX 中。
+
+<!--truncate-->
+
+Apache APISIX 为 Microsoft Azure Functions 提供了对 serverless 框架的支持。Apache APISIX 
建议定义一个启用了无服务器插件的路由,而不是在应用程序中硬编码函数URL。它使开发者能够灵活地热更新函数 URI。此外,因为 Apache APISIX 
有非常强大的认证支持,这种方法还可以减轻应用逻辑中的授权和认证问题,可以用来识别和授权客户消费者访问带有 FAAS 的特定路由。本文介绍了 Apache 
APISIX 最近增加的一个新插件`azure-functions`,并详细说明了如何将 Azure Functions(一种广泛使用的 serverless 
解决方案)集成到 Apache APISIX 中。
+
+## azure-functions 插件工作原理
+
+`azure-functions` 插件让用户为网关 URI 定义一个上游的 azure `HTTP Trigger` serverless 
功能。如果启用,该插件将终止正在进行的对该 URI 的请求,并代表客户向 azure 
FAAS(新的上游)发起一个新的请求,其中包括用户设置的合适的授权细节、请求头、请求体、参数(这三个部分都是从原始请求中传递的),并将响应体、状态码和头返回给向
 Apache APISIX 代理发出请求的原始客户。
+
+该插件支持通过 API 密钥和 azure active directory 对 azure FAAS 服务进行授权。
+
+## 如何在 Apache APISIX 中使用 azure-functions 插件
+
+该插件的主要目标是将路由配置中指定的网关路由代理到 azure function URI 上。本节为您介绍如何在 azure 云上配置和创建 
serverless HTTP Trigger。
+
+1. 首先进入 Azure 
并设置一个试用计划,最多可免费调用100万次。要了解更多关于定价的情况,请访问[这里](https://azure.microsoft.com/en-us/services/functions/#pricing)。
+
+1. 访问[Azure Portal](https://portal.azure.com/#home)。
+    1. 首先,创建一个资源组,为 FAAS 创建逻辑分区。
+    
![创建资源组](https://static.apiseven.com/202108/1638349069240-911b8640-2de6-4f82-b75b-fb937b0bad40.png)
+    1. 用你选择的 URL 创建一个 function 应用。
+    ![创建一个 function 
应用](https://static.apiseven.com/202108/1638349121520-01abe8e6-bc09-4be7-b010-f7baec59f89a.png)
+
+1. 在 VSCode 编辑器中安装 [Azure Functions 
插件](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions)。安装后,通过插件认证,并安装
 azure function core tool,用于本地开发。
+
+    ```shell
+    npm install -g azure-functions-core-tools@3 --unsafe-perm true
+    ```
+
+1. 将下面的代码段部署到我们刚才通过 VSCode 中的 Azure Functions 扩展面板创建的同一个function 应用中。

Review comment:
       这几个格式都是 1. 吗




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to