automatically download the latest ip ranges used by MS Azure Datacenters
I see MS has provide website where you can download the public ip ranges used by MS Azure.
The question is, is there a way to download the XML file from that site automatically using Python or other scripts? I am trying to schedule a task to grab the new IP range file and process it .
Thanks,
Adi

Thank you for the feedback. We now have a report that is generated weekly on Mondays: Azure Service Tags JSON (https://www.microsoft.com/en-us/download/details.aspx?id=56519). This file includes all of the Service Tags and data by regions. This is an improvement over previous files as it includes tagging by Service Tag. We recommend you move to using this file and check weekly for updates. The file is broken out by Cloud (I.e. Public) and region (i.e., West US 2). We will take the RSS Feed request under advisement.
7 comments
-
Andrew Br commented
This should be an API like AWS and GCP. Why is this still broken?
-
Jason Robinson commented
2.5 Years later, still a problem. Why are you actively trying to steal our time? A static link is easier for everybody to work with than an ASPX page.
-
Oliver commented
Still the same issue after 3 years.. AWS is much more advanced at this point..
-
Paul Gaynor commented
I am also looking for a programmatic way to pull this data.
It would be very useful for us to be able to get this data through a public URL.
It would also be helpful if we could get this data from an azure cli / sdk request.
Thanks!
-
Anonymous commented
Except that this method requires you to click the download button to actually get the link to the list. Can you not just publish the latest list to a static URL so we know exactly where to get it without having to script passing through this hurdle?
-
Mohammed commented
Checking the link every week for updates is a manual task, this needs to be automated. O365 IP ranges have the possibility of alerting the customers via RSS Feeds. Atleast this can be helpful and a quick one.
-
Anonymous commented
Looking for the same. Need an easy way to automate so we can update things automatically when the IP address ranges change.