简体   繁体   English

Azure 事件网格主题的应用程序网关后端池

[英]Azure Application Gateway backendpool to Event Grid Topic

I would like to ask if it is possible to use Azure Application Gateway to route(backend pool) traffic to Azure Event Grid Topic.我想问一下是否可以使用 Azure 应用程序网关将(后端池)流量路由到 Azure 事件网格主题。 I have tested it but no matter what i do i always get 502 error when i tries to perform a POST Request to my App Gateway.我已经对其进行了测试,但无论我做什么,当我尝试向我的 App Gateway 执行 POST 请求时,我总是会收到 502 错误。

Here is the sample flow:这是示例流程:

[user] ===> [Application Gateway]====>[EventGrid Topic]====> Azure Function [用户] ===> [应用程序网关]====> [EventGrid 主题]====> Azure Function

Is this possible?这可能吗?

I got working, make sure you have the application setup as follows:我开始工作了,请确保您的应用程序设置如下:

There is not a 'healthcheck' endpoint from Event Grid hence I just added the FQDN + /ping to the healthprobe and configured the probe to accept a 404.事件网格中没有“健康检查”端点,因此我只是将 FQDN + /ping 添加到健康探测器并将探测器配置为接受 404。

In the HTTP settings you should make sure that the incoming hostname gets overrided with the EG FQDN by using the "Override with new hostname" option.在 HTTP 设置中,您应该通过使用“用新主机名覆盖”选项确保传入的主机名被 EG FQDN 覆盖。 After that it should work just fine.Take a look at the rest of my HTTP settings below.之后它应该可以正常工作。看看下面我的 HTTP 设置中的 rest。

在此处输入图像描述

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

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