diff --git a/Azure-IP-Downloader.ps1 b/Azure-IP-Downloader.ps1 index fb96ebd..caa5be8 100644 --- a/Azure-IP-Downloader.ps1 +++ b/Azure-IP-Downloader.ps1 @@ -20,10 +20,11 @@ $exportlocation = "C:\temp\" $regionFilter = "canada" #grab URI from txt file -$DLURI = Invoke-WebRequest -uri "https://raw.githubusercontent.com/thedxt/IP-Downloader/main/URIs/Azure-JSON-URI.txt" +$LocationURI = Invoke-WebRequest -uri "https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519" +$DLURI = $LocationURI.Links | Where-Object {$_.InnerText -Like "click here to download manually" } #download the JSON file from MS -$MSjsonDL = Invoke-WebRequest -Uri $DLURI.Content +$MSjsonDL = Invoke-WebRequest -Uri $DLURI.href #getting date $time = get-date -f yyyy_MMM_dd_hhmm_tt