Skip to content

Commit 899597c

Browse files
logs
1 parent 80016c0 commit 899597c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-AuditLogIngestion.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ function Start-AuditLogIngestion {
1515

1616
try {
1717
Write-Information 'Office 365 Management Activity API: Starting audit log ingestion orchestrator'
18-
1918
# Get webhook rules to determine which tenants to monitor
2019
$WebhookRulesTable = Get-CippTable -TableName 'WebhookRules'
2120
$WebhookRules = Get-CIPPAzDataTableEntity @WebhookRulesTable -Filter "PartitionKey eq 'Webhookv2'"
22-
2321
if (($WebhookRules | Measure-Object).Count -eq 0) {
2422
Write-Information 'No webhook rules defined, skipping audit log ingestion'
2523
return
@@ -78,7 +76,7 @@ function Start-AuditLogIngestion {
7876
if ($PSCmdlet.ShouldProcess('Start-AuditLogIngestion', 'Starting Audit Log Ingestion')) {
7977
$Queue = New-CippQueueEntry -Name 'Audit Logs Ingestion' -Reference 'AuditLogsIngestion' -TotalTasks $TenantsToProcess.Count
8078
$Batch = $TenantsToProcess | Select-Object @{Name = 'TenantFilter'; Expression = { $_.defaultDomainName } }, @{Name = 'TenantId'; Expression = { $_.customerId } }, @{Name = 'ContentTypes'; Expression = { $_.ContentTypes } }, @{Name = 'QueueId'; Expression = { $Queue.RowKey } }, @{Name = 'FunctionName'; Expression = { 'AuditLogIngestion' } }
81-
$InputObject = [PSCustomObject]@{
79+
$InputObject = [PSCustomObject]@{
8280
OrchestratorName = 'AuditLogsIngestion'
8381
Batch = @($Batch)
8482
SkipLog = $true

Modules/CIPPCore/Public/Get-CIPPTimerFunctions.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ function Get-CIPPTimerFunctions {
4040
}
4141

4242
$CIPPRoot = (Get-Item $CIPPCoreModuleRoot).Parent.Parent
43+
Write-Host "Loading CIPPTimers from $CIPPRoot\CIPPTimers.json"
4344
$CippTimers = Get-Content -Path $CIPPRoot\CIPPTimers.json
45+
Write-Host "CIPPTimers content: $CippTimers"
4446
if ($ListAllTasks) {
4547
$Orchestrators = $CippTimers | ConvertFrom-Json | Sort-Object -Property Priority
4648
} else {

Modules/CippEntrypoints/CippEntrypoints.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ function Receive-CIPPTimerTrigger {
408408

409409
$UtcNow = (Get-Date).ToUniversalTime()
410410
$Functions = Get-CIPPTimerFunctions
411+
Write-Host "CIPP Timer Trigger executed at $UtcNow. Found $($Functions.Count) functions to evaluate. The names are as follows: $($Functions.Command -join ', ')"
411412
$Table = Get-CIPPTable -tablename CIPPTimers
412413
$Statuses = Get-CIPPAzDataTableEntity @Table
413414
$FunctionName = $env:WEBSITE_SITE_NAME

0 commit comments

Comments
 (0)