使用Powershell/Python获取连接到Azure租户的所有IP地址。

huangapple go评论68阅读模式
英文:

Using Powershell/Python to get all IP addresses connected to an Azure Tenant

问题

对于客户使用案例,我正在研究列出连接到Azure订阅的每个IP的方法。不是Azure资源的IP,而是例如外部计算机连接到订阅的情况,我希望在列表中包括这些情况,最好包括连接失败或被拒绝的情况。是否可以使用PowerShell、Python或其他任何语言来实现这一点?

编辑:澄清一下,我正在寻求获取某人尝试连接到订阅中资源组中托管的服务时的数据。

英文:

For a client use case, I am looking into ways to list every IP that has connected to an Azure Subscription. Not azure resource IPs, but for instance if an external computer has connected to the subscription, I want to include that in the list, ideally including failed or denied connections. Is there a way to do this with PowerShell or Python (or any other language for that matter)?

Edit: To clarify, I am looking to get data for when someone tries to connect to a service hosted in a resource group in the subscription.

答案1

得分: 0

为了回答这个问题,我最终使用了EventHubs将日志文件从事件中发送到我的存储容器。感谢大家的建议!

英文:

To answer this, I ended up using EventHubs to send log file from events to my storage container. Thanks all for the advice!

huangapple
  • 本文由 发表于 2023年7月13日 22:21:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76680449.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定