Skip to content

Commit 37c94ac

Browse files
move to new knownip table.
1 parent f90ade1 commit 37c94ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function Test-CIPPAuditLogRules {
5555
}
5656

5757
if ($LogCount -gt 0) {
58-
$LocationTable = Get-CIPPTable -TableName 'knownlocationdb'
58+
$LocationTable = Get-CIPPTable -TableName 'knownlocationdbv2'
5959
$ProcessedData = foreach ($AuditRecord in $SearchResults) {
6060
$RecordStartTime = Get-Date
6161
Write-Host "Processing RowKey $($AuditRecord.id)"
@@ -135,7 +135,7 @@ function Test-CIPPAuditLogRules {
135135
$IP = $Data.ClientIP
136136
$LocationInfo = @{
137137
RowKey = [string]$Data.clientip
138-
PartitionKey = [string]$Data.id
138+
PartitionKey = 'ip'
139139
Tenant = [string]$TenantFilter
140140
CountryOrRegion = "$Country"
141141
City = "$City"

0 commit comments

Comments
 (0)