简体   繁体   English

用于逻辑应用的 Azure API 管理反向代理

[英]Azure API Management Reverse Proxy for Logic Apps

I have a created a simple Azure Logic App that sends a file via FTP to a customer.我创建了一个简单的 Azure 逻辑应用程序,它通过 FTP 向客户发送文件。 I have tested the Logic App and it works to my VM.我已经测试了逻辑应用程序,它适用于我的 VM。 I have an issue however that my customer whitelists IP addresses that FTP to them and Azure will only supply you with regional IP addresses meaning anyone who uses Logic App in my region will have access to my customer.但是,我有一个问题,我的客户将 FTP 的 IP 地址列入白名单,Azure 只会为您提供区域 IP 地址,这意味着在我所在地区使用 Logic App 的任何人都可以访问我的客户。 I have done some reading and it seems that the recommended way to do this is by using API Management as a Reverse Proxy.我已经阅读了一些资料,似乎推荐的方法是使用 API 管理作为反向代理。

https://blogs.msdn.microsoft.com/david_burgs_blog/2017/05/19/whitelisting-and-logic-apps/ https://blogs.msdn.microsoft.com/david_burgs_blog/2017/05/19/whitelisting-and-logic-apps/

Can someone explain how to do this?有人可以解释如何做到这一点吗? It seems you ftp to your API Management Gateway and it then forwards the request to customer.看来您 ftp 到您的 API 管理网关,然后它将请求转发给客户。 Its the forwarding bit i don't understand how to do.它的转发位我不明白该怎么做。

Azure API management only supports HTTP, so it would not be possible to use it as an FTP proxy. Azure API 管理仅支持 HTTP,因此无法将其用作 FTP 代理。 Perhaps you could host some secure endpoint in your VM and invoke it with Logic App, using your VM as a proxy.也许您可以在 VM 中托管一些安全端点,并使用 Logic App 调用它,使用 VM 作为代理。 Surely more elaborate way.当然更精细的方式。

Azure Logic App is a Serverless PaaS offering, meaning you would not be able to obtain a Static IP just for your Logic App. Azure 逻辑应用程序是无服务器 PaaS 产品,这意味着您无法仅为逻辑应用程序获取静态 IP。 Unless you are okay to setup an Integration Service Enrionment (ISE) to do - read more about it here .除非您可以设置集成服务环境 (ISE),否则请在此处阅读更多相关信息。

However, please note that ISE is dedicated environment more like a piece of Azure assigned just for you to run your Logic Apps & doesn't come as part of the typical Logic App's Consumption based plan.但是,请注意,ISE 是专用环境,更像是分配给您运行逻辑应用程序的 Azure 的一部分,而不是典型逻辑应用程序基于消耗的计划的一部分。 This means higher pricing/cost.这意味着更高的定价/成本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM