@@ -527,6 +527,11 @@ function Test-CreateLinuxIncludedPackageNameMasksSoftwareUpdateConfiguration() {
527
527
Test-CreateLinuxOneTimeSoftwareUpdateConfigurationWithAllOption
528
528
#>
529
529
function Test-CreateLinuxSoftwareUpdateConfigurationWithRebootSetting {
530
+ $azureVMIdsLinux = @ (
531
+ " /subscriptions/d2b38167-d3ca-4d1f-a020-948eee21b6bc/resourceGroups/ikanni-rhel76-hw-001-RG/providers/Microsoft.Compute/virtualMachines/ikanni-rhel76-hw-001" ,
532
+ " /subscriptions/d2b38167-d3ca-4d1f-a020-948eee21b6bc/resourceGroups/ikanni-rhel76-JPE-hw-002-RG/providers/Microsoft.Compute/virtualMachines/ikanni-rhel76-JPE-hw-002"
533
+ )
534
+
530
535
$name = " linx-suc-reboot"
531
536
$rebootSetting = " Never"
532
537
$startTime = ([DateTime ]::Now).AddMinutes(10 )
@@ -542,17 +547,17 @@ function Test-CreateLinuxSoftwareUpdateConfigurationWithRebootSetting {
542
547
- AutomationAccountName $aa `
543
548
- Schedule $s `
544
549
- Linux `
545
- - AzureVMResourceId $azureVMIdsL `
550
+ - AzureVMResourceId $azureVMIdsLinux `
546
551
- NonAzureComputer $nonAzurecomputers `
547
552
- Duration (New-TimeSpan - Hours 2 ) `
548
553
- IncludedPackageClassification Security, Critical `
549
554
- ExcludedPackageNameMask Mask01, Mask02 `
550
555
- IncludedPackageNameMask Mask100 `
551
556
- RebootSetting $rebootSetting
552
-
557
+
553
558
Assert-NotNull $suc " New-AzAutomationSoftwareUpdateConfiguration returned null"
554
559
Assert-AreEqual $suc.Name $name " Name of created software update configuration didn't match given name"
555
- Assert-AreEqual $suc.RebootSetting $rebootSetting " Reboot setting failed to match"
560
+ Assert-AreEqual $suc.UpdateConfiguration.Linux.rebootSetting $rebootSetting " Reboot setting failed to match"
556
561
557
562
WaitForProvisioningState $name " Failed"
558
563
}
0 commit comments