Skip to content

Commit

Permalink
Merge pull request #3 from thedxt/clean-up-and-update-txts
Browse files Browse the repository at this point in the history
Clean up and update txts
  • Loading branch information
thedxt authored Feb 6, 2023
2 parents 089a0d5 + 0f7597d commit 206ee01
Show file tree
Hide file tree
Showing 6 changed files with 24,848 additions and 1,427 deletions.
17 changes: 14 additions & 3 deletions Azure-IP-Downloader.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure IP filter and downloader script v1.1.0
# Azure IP filter and downloader script v1.2.0
# Author: Daniel Keer
# Author URI: https://thedxt.ca
# Script URI: https://github.com/thedxt/IP-Downloader
Expand All @@ -8,14 +8,25 @@
# 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 MS will need to be replaced as that may change
# the uri is here https://www.microsoft.com/en-us/download/details.aspx?id=56519
#
# change the variables as needed

#save location
$exportlocation = "C:\temp\"

# function to check if save location exists if not create it
function exportloc-check{

if (-not (Test-Path $exportlocation))
{
New-Item -ItemType Directory $exportlocation | out-null
}

}

# run the function
exportloc-check

#region filter
$regionFilter = "canada"

Expand Down
Loading

0 comments on commit 206ee01

Please sign in to comment.