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 script grabs the json file directly from Microsoft (no more manual updating needed).
mandatory parameters only: exportlocation: Save location (folder will be created if it does not exist)
- ./Azure-IP-Downloader.ps1 -exportlocation "./IPs"
Optional parameters: Region and Service filters. If not passed, defaults will be used
- ./Azure-IP-Downloader.ps1 -exportlocation "./IPs" -regionFilter northeurope -serviceFilter LogicApps
- If the account that is running the script doesn't have read write access to the specified save location it will fail.
- added parameters and service filter
- deployed fix to no longer need manual updating of the Microsoft URI to download the JSON file. Thanks @erikplekenpol for the fix.
- deployed fix to auto create the save location if it doesn't exist.
- added DLURI which makes the script grab the MS JSON URI from a TXT file so the script doesn't need to be edited manually each week when MS release a new JSON file.
- Intial Release