We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39edfae commit ef47345Copy full SHA for ef47345
1 file changed
Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogSearchCreation.ps1
@@ -9,7 +9,11 @@ function Start-AuditLogSearchCreation {
9
$ConfigTable = Get-CippTable -TableName 'WebhookRules'
10
$ConfigEntries = Get-CIPPAzDataTableEntity @ConfigTable -Filter "PartitionKey eq 'Webhookv2'" | ForEach-Object {
11
$ConfigEntry = $_
12
- $ConfigEntry.excludedTenants = $ConfigEntry.excludedTenants | ConvertFrom-Json
+ if (!$ConfigEntry.excludedTenants) {
13
+ $ConfigEntry | Add-Member -MemberType NoteProperty -Name 'excludedTenants' -Value @() -Force
14
+ } else {
15
+ $ConfigEntry.excludedTenants = $ConfigEntry.excludedTenants | ConvertFrom-Json
16
+ }
17
$ConfigEntry.Tenants = $ConfigEntry.Tenants | ConvertFrom-Json
18
$ConfigEntry
19
}
0 commit comments