File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -220,23 +220,20 @@ Export-ModuleMember -Function Get-AzsUpdateRun
220220
221221function Install-AzsUpdate {
222222 Param (
223- [Parameter (Mandatory = $false )]
223+ [Parameter (Mandatory = $true )]
224224 [string ] $Location ,
225225
226226 [Parameter (Mandatory = $true )]
227227 [ValidateNotNullorEmpty ()]
228228 [String ] $Update
229229 )
230230
231- $updates = Get-AzsUpdate - Location $Location
232-
233- $updateContent = $updates | Where-Object {$_.UpdateName -eq $Update }
234-
231+
235232 $params = @ {
236233 ResourceType = " Microsoft.Update.Admin/updatelocations/updates"
237234 ResourceName = " {0}/{1}" -f $Location , $Update
238235 ApiVersion = " 2016-05-01"
239- Properties = $updateContent
236+ ResourceGroupName = " system.{0} " -f $Location
240237 }
241238
242239 $StartRun = Invoke-AzureRmResourceAction @params - Action ' apply' - Force
You can’t perform that action at this time.
0 commit comments