如何将Azure事件网格Webhook启用到Azure VM [英] How to enable Azure Event Grid Webhook to Azure VM

查看:81
本文介绍了如何将Azure事件网格Webhook启用到Azure VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Azure事件网格Webhooks(https://docs.microsoft.com/zh-cn/azure/event-grid/receive-events),并将端点配置为在azure虚拟机中运行的服务器.

VM使用仅启用已知地址的安全组运行.问题在于这些事件的源((Azure中的某个地方未知.因此,我们目前必须禁用安全组,嗅探事件的源,并且< g class ="gr_gr_10 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id ="10". id ="10"可重新启用/g.允许源IP的安全组.那有没有更好的方法可以解决这个问题 对所有可能的来源都这样做吗?

如果不是,是否有办法以某种方式获取这些事件的源地址?

We're using Azure Event Grid Webhooks (https://docs.microsoft.com/en-us/azure/event-grid/receive-events) with the endpoint configured as a server running in an azure virtual machine.

The VM is running with a security group that only enables known addresses. The problem is that the source of these events, (somewhere in Azure is not known. Therefore we currently have to disable the security group, sniff the source of the events, and <g class="gr_ gr_10 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id="10" id="10">reenable</g> the security group with allowing the source IP. Is there a better way to go about this then doing this for all possible sources? 

If not, is there a means of getting the source addresses of these events somehow?

推荐答案

固定/静态IP地址 与事件网格很好地集成.
Hey FourColoredPumpkin - I'm not aware of any set of outbound IPs from Event Grid that you can use for this scenario -- I'll double check and share my findings here when i find out. Alternative, have you explored using proxy service together with Event Grid? Azure API Management provides constant/static IP addresses and integrates well with Event Grid.


这篇关于如何将Azure事件网格Webhook启用到Azure VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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