Skip to content

grabs the json file from MS for the Azure IP Ranges and Service Tags – Public Cloud and filters it and dumps it to a txt file

Notifications You must be signed in to change notification settings

erikplekenpol/IP-Downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure IP filter and downloader script v1.1.0

Grabs the JSON file for the Azure IP Ranges and Service Tags – Public Cloud.

Script allows for flitering and downloads the ips into one big file it also makes a file just for IPv4 and IPv6

The uri from microsoft will need to be replaced as that may change (they update the file weekly) you can grab the direct json link here by download the file directly https://www.microsoft.com/en-us/download/details.aspx?id=56519

How to use

  • make sure C:\temp exists or change the location under save location
  • change your region filter as needed to suit your needs
  • in download the JSON file from MS replace the uri in from MS when they update the file to keep it as updated as possible
  • the filter includes null regions as some of the data doesn't have a region
  • DLURI will grab the most recent MS URI that I've saved in URIs/Azure-JSON-URI.txt. You can change this to something you control. All that you have to do after that is just update the URI in that file and the reset of the script doesnt need to change.

known issues

  • C:\temp needs to exist

About

grabs the json file from MS for the Azure IP Ranges and Service Tags – Public Cloud and filters it and dumps it to a txt file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%