Skip to content

Commit 2754ce6

Browse files
authored
Merge pull request #250 from troettinger/vnext
Fix Install Update
2 parents 10bd0a3 + 1b70803 commit 2754ce6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Infrastructure/AzureStack.Infra.psm1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,23 +220,20 @@ Export-ModuleMember -Function Get-AzsUpdateRun
220220

221221
function 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

0 commit comments

Comments
 (0)