Skip to content

Commit

Permalink
Merge pull request #755 from aaronparker/apps
Browse files Browse the repository at this point in the history
Update MicrosoftWindowsApp
  • Loading branch information
aaronparker authored Oct 13, 2024
2 parents 194290b + 3aea581 commit 0b02f64
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
12 changes: 10 additions & 2 deletions Evergreen/Apps/Get-MicrosoftWindowsApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ function Get-MicrosoftWindowsApp {
)

foreach ($Url in $res.Get.Download.Uri) {

# Resolve the Microsoft FwLink URL
$params = @{
Uri = $Url
WarningAction = "Ignore"
}
$ResolvedUrl = Resolve-MicrosoftFwLink @params

# Grab the download link headers to find the file name
$params = @{
Uri = $Url
Uri = $ResolvedUrl.URI
Method = "Head"
ReturnObject = "Headers"
}
Expand All @@ -37,7 +45,7 @@ function Get-MicrosoftWindowsApp {
Date = $Headers['Last-Modified'] | Select-Object -First 1
Architecture = Get-Architecture -String $Filename
Filename = $Filename
URI = $Url
URI = $ResolvedUrl.URI
}
Write-Output -InputObject $PSObject
}
Expand Down
6 changes: 3 additions & 3 deletions Evergreen/Manifests/MicrosoftWindowsApp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"Update": {},
"Download": {
"Uri": [
"https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW1pC6G",
"https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW1pHol",
"https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW1pJV5"
"https://go.microsoft.com/fwlink/?linkid=2262633",
"https://go.microsoft.com/fwlink/?linkid=2262634",
"https://go.microsoft.com/fwlink/?linkid=2262635"
],
"ApiUri": "https://query.prod.cms.rt.microsoft.com/cms/api",
"ApiHeader1": "X-CMS-Tenant",
Expand Down
2 changes: 1 addition & 1 deletion Evergreen/Manifests/MicrosoftWvdBootloader.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Name": "Microsoft Azure Virtual Desktop Agent Bootloader",
"Source": "https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell",
"Source": "https://learn.microsoft.com/en-us/azure/virtual-desktop/add-session-hosts-host-pool?tabs=portal%2Cgui#register-session-hosts-to-a-host-pool",
"Get": {
"Download": {
"Uri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWrxrH",
Expand Down
2 changes: 1 addition & 1 deletion Evergreen/Manifests/MicrosoftWvdInfraAgent.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Name": "Microsoft Azure Virtual Desktop Agent",
"Source": "https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell",
"Source": "https://learn.microsoft.com/en-us/azure/virtual-desktop/add-session-hosts-host-pool?tabs=portal%2Cgui#register-session-hosts-to-a-host-pool",
"Get": {
"Download": {
"Uri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWrmXv",
Expand Down

0 comments on commit 0b02f64

Please sign in to comment.