We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7191e1d + 615737a commit 02c6298Copy full SHA for 02c6298
Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecOnboardTenantQueue.ps1
@@ -366,6 +366,9 @@ function Push-ExecOnboardTenantQueue {
366
foreach ($AllTenantsTemplate in $ExistingTemplates) {
367
$object = $AllTenantesTemplate.JSON | ConvertFrom-Json
368
$NewExcludedTenants = [system.collections.generic.list[object]]::new()
369
+ if (!$object.excludedTenants) {
370
+ $object | Add-Member -MemberType NoteProperty -Name 'excludedTenants' -Value @() -Force
371
+ }
372
foreach ($Tenant in $object.excludedTenants) {
373
$NewExcludedTenants.Add($Tenant)
374
}
0 commit comments