Created
February 4, 2023 21:44
-
-
Save taylorhutchison/2dc86f97e70d8ed8f4ede0a3970c86ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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