File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ function Start-AuditLogOrchestrator {
3434 $WebhookCache = Get-CIPPAzDataTableEntity @WebhookCacheTable
3535 $TenantGroups = $WebhookCache | Group-Object - Property PartitionKey
3636
37- if ($TenantGroups.Count -gt 0 ) {
37+ if ($TenantGroups ) {
3838 Write-Information " Processing webhook cache for $ ( $TenantGroups.Count ) tenants"
39- Write-Warning " AuditLogJobs are: $ ( $TenantGroups.Count ) tenants. Tenants: $ ( $tenantgroups.name | ConvertTo-Json ) "
39+ Write-Warning " AuditLogJobs are: $ ( $TenantGroups.Count ) tenants. Tenants: $ ( $TenantGroups.name | ConvertTo-Json - Compress) "
40+ Write-Warning " Here are the groups: $ ( $TenantGroups | ConvertTo-Json - Compress) "
4041 $ProcessQueue = New-CippQueueEntry - Name ' Audit Logs Process' - Reference ' AuditLogsProcess' - TotalTasks ($TenantGroups | Measure-Object - Property Count - Sum).Sum
4142 $ProcessBatch = foreach ($TenantGroup in $TenantGroups ) {
4243 $TenantFilter = $TenantGroup.Name
You can’t perform that action at this time.
0 commit comments