File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments