Skip to content

Commit e81a8cd

Browse files
authored
Merge pull request #228 from troettinger/vnext
Fix for Install Update after API Change
2 parents 3cc67a7 + 1fc2e96 commit e81a8cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Infrastructure/AzureStack.Infra.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ Function Install-AzSUpdate{
408408
$Updateprop=$Updates.value
409409
$Update=$updateprop |where-object {$_.name -eq "$vupdate"}
410410
$StartUpdateBody = $update | ConvertTo-Json
411-
$URI= "${ArmEndpoint}/subscriptions/${subscription}/resourceGroups/system.$region/providers/Microsoft.Update.Admin/updatelocations/$region/updates/$vupdate ?api-version=2016-05-01"
412-
$Runs=Invoke-RestMethod -Method PUT -Uri $uri -ContentType 'application/json' -Headers $Headers -Body $StartUpdateBody
411+
$URI= "${ArmEndpoint}/subscriptions/${subscription}/resourceGroups/system.$region/providers/Microsoft.Update.Admin/updatelocations/$region/updates/$vupdate/apply?api-version=2016-05-01"
412+
$Runs=Invoke-RestMethod -Method POST -Uri $uri -ContentType 'application/json' -Headers $Headers -Body $StartUpdateBody
413413
$Startrun=$Runs.value
414414
$Startrun
415415

0 commit comments

Comments
 (0)