Skip to content

Commit

Permalink
added out-null
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 8, 2024
1 parent 0694ac8 commit 5295bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scheduler_Alert/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ try {
$CurrentAlerts = (Get-CIPPAzDataTableEntity @AlertsTable -Filter $Filter)
$CurrentAlerts | ForEach-Object {
if ($_.Message -notin $currentlog.Message) { Write-LogMessage -message $_.Message -API 'Alerts' -tenant $tenant.tenant -sev Alert -tenantid $Tenant.tenantid }
Remove-AzDataTableEntity @AlertsTable -Entity $_
Remove-AzDataTableEntity @AlertsTable -Entity $_ | Out-Null
}

[PSCustomObject]@{
Expand Down

0 comments on commit 5295bc8

Please sign in to comment.