File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function Get-CIPPGeoIPLocation {
6
6
7
7
$CacheGeoIPTable = Get-CippTable - tablename ' cachegeoip'
8
8
$30DaysAgo = (Get-Date ).AddDays(-30 ).ToString(' yyyy-MM-ddTHH:mm:ssZ' )
9
- $Filter = " RowKey eq '$IP ' and Timestamp ge datetime'$30DaysAgo '"
9
+ $Filter = " PartitionKey eq 'IP' and RowKey eq '$IP ' and Timestamp ge datetime'$30DaysAgo '"
10
10
$GeoIP = Get-CippAzDataTableEntity @CacheGeoIPTable - Filter $Filter
11
11
if ($GeoIP ) {
12
12
return ($GeoIP.Data | ConvertFrom-Json )
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ function Test-CIPPAuditLogRules {
110
110
}
111
111
if (! $Trusted ) {
112
112
$CacheLookupStartTime = Get-Date
113
- $Location = Get-AzDataTableEntity @LocationTable - Filter " RowKey eq '$ ( $Data.clientIp ) '" | Select-Object - ExcludeProperty Tenant
113
+ $Location = Get-AzDataTableEntity @LocationTable - Filter " PartitionKey eq 'ip' and RowKey eq '$ ( $Data.clientIp ) '" | Select-Object - ExcludeProperty Tenant
114
114
$CacheLookupEndTime = Get-Date
115
115
$CacheLookupSeconds = ($CacheLookupEndTime - $CacheLookupStartTime ).TotalSeconds
116
116
Write-Warning " Cache lookup for IP $ ( $Data.clientip ) took $CacheLookupSeconds seconds"
You can’t perform that action at this time.
0 commit comments