You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPActivityTriggers/Public/Entrypoints/Activity Triggers/Webhooks/Push-AuditLogSearchCreation.ps1
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,10 @@ function Push-AuditLogSearchCreation {
10
10
$Tenant=$Item.Tenant
11
11
$StartTime=$Item.StartTime
12
12
$EndTime=$Item.EndTime
13
-
$ServiceFilters=@($Item.ServiceFilters)
14
-
15
13
try {
16
14
$LogSearch=@{
17
15
StartTime=$StartTime
18
16
EndTime=$EndTime
19
-
ServiceFilters=$ServiceFilters
20
17
TenantFilter=$Tenant.defaultDomainName
21
18
ProcessLogs=$true
22
19
RecordTypeFilters=@(
@@ -30,6 +27,8 @@ function Push-AuditLogSearchCreation {
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/AuditLogs/Get-CippAuditLogSearches.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ function Get-CippAuditLogSearches {
20
20
$PendingQueries=Get-CIPPAzDataTableEntity@AuditLogSearchesTable-Filter "PartitionKey eq 'Search' and Tenant eq '$TenantFilter' and (CippStatus eq 'Pending' or (CippStatus eq 'Processing' and Timestamp le datetime'$15MinutesAgo')) and Timestamp ge datetime'$1DayAgo'"|Sort-Object Timestamp
$PendingQueries=Get-CIPPAzDataTableEntity@AuditLogSearchesTable-Filter "Tenant eq '$TenantFilter' and Timestamp ge datetime'$7DaysAgo'"
23
+
$PendingQueries=Get-CIPPAzDataTableEntity@AuditLogSearchesTable-Filter "PartitionKey eq 'Search' and Tenant eq '$TenantFilter' and Timestamp ge datetime'$7DaysAgo'"
$IsCredentialPolicyBlocked=$ErrorMsg-match'Credential type not allowed as per assigned policy'
249
+
if ($IsCredentialPolicyBlocked-and$Attempt-lt6) {
250
+
$DelaySeconds= [Math]::Min(10,1*$Attempt)
251
+
Write-Information"Credential policy still blocks addPassword (attempt $Attempt of 6). Waiting for policy propagation and retrying in $DelaySeconds second(s)."
252
+
Start-Sleep-Seconds $DelaySeconds
253
+
continue
231
254
}
232
-
dependsOn=@('removeOldPasswords')
255
+
throw"Failed to add new password during secret reset: $ErrorMsg"
0 commit comments