Skip to content

Instantly share code, notes, and snippets.

@taylorhutchison
Created February 4, 2023 21:44
Show Gist options
  • Save taylorhutchison/2dc86f97e70d8ed8f4ede0a3970c86ae to your computer and use it in GitHub Desktop.
Save taylorhutchison/2dc86f97e70d8ed8f4ede0a3970c86ae to your computer and use it in GitHub Desktop.
$DownloadPageResponse = Invoke-WebRequest "https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519"
$JsonFileLink = $DownloadPageResponse.Links | Where-Object href -Like '*json' | Select-Object href -first 1 | Select-Object -ExpandProperty href
$JsonFileResponse = Invoke-RestMethod $JsonFileLink
$searchList = @('AzureDevOps.EastUS2', 'AzureDevOps.EastUS')
$JsonFileResponse.values | Where-Object { $searchList.contains($_.name) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment