Skip to content

Commit

Permalink
Update Get-CIPPTimerFunctions.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Jan 10, 2025
1 parent d878a76 commit d91c4ff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Modules/CIPPCore/Public/Get-CIPPTimerFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ function Get-CIPPTimerFunctions {
$OrchestratorStatus = Get-CIPPAzDataTableEntity @Table -Filter "RunOnProcessor eq $RunOnProcessorTxt"
}

Write-Host ($OrchestratorStatus | ConvertTo-Json)

$OrchestratorStatus | Where-Object { $_.RowKey -notmatch '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' } | Select-Object ETag, PartitionKey, RowKey | ForEach-Object {
Remove-AzDataTableEntity @Table -Entity $_ -Force
}


foreach ($Orchestrator in $Orchestrators) {
$Status = $OrchestratorStatus | Where-Object { $_.RowKey -eq $Orchestrator.Id }
if ($Status.Cron) {
Expand Down

0 comments on commit d91c4ff

Please sign in to comment.