监视Azure功能上的流量来源 [英] Monitoring Traffic Sources on Azure Functions

查看:83
本文介绍了监视Azure功能上的流量来源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个代理到HTTP端点的Azure功能(主要用于启用HTTPS前端)。

I have an Azure Function that is proxying to an HTTP endpoint (mainly to enable HTTPS fronting).


在过去的一天里,我看到使用量大幅上升,我的用户数量还没有增长。我认为这是抓取我的API来收集数据的人。我想将此IP列入黑名单(假设它来自1或2),但我无法找到流量来自
的地方。

In the past day I have seen a big spike in usage, and my user numbers have not grown. I think this is someone scraping my APIs to harvest data. I would like to blacklist this IP (assuming it is coming from 1 or 2), but I can't find where the traffic is coming from.


有没有办法找到Azure代理功能请求的源IP?我在函数中查找了监视器链接,但是对于Proxy类型的函数没有出现。

Is there a way to find the source IPs of Azure Proxy Function requests? I looked for the monitor link in the function, but this doesn't appear for Functions of type Proxy.

推荐答案

我相信你可以打开
调试日志
函数代理并检查日志是否包含有关此信息的信息。我从来没有真正尝试过这一点。

I believe you could turn on debug logs for functions proxies and check to see if the logs has the information about this. I never really tried this out to be sure.

另外,我不认为使用Azure函数进行SSL终止是最好的主意。

Also, I don't think using Azure Functions for SSL Termination is the best idea.

理想情况下,您应该使用
Azure应用程序网关
,但我猜猜你想要一个更"无服务器"的"接近它。

如果是这种情况,你可以查看
Azure Frontdoor
(请注意,它仍在预览中)或
Azure API管理
,包含消费计划。

Ideally you should be using Azure Application Gateway but I'm guessing you want a more "serverless" approach to it.
If that's the case you could check out Azure Frontdoor (note that its still in preview) or Azure API Management with Consumption Plan.


这篇关于监视Azure功能上的流量来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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