Skip to content

Commit 3c432bb

Browse files
committed
filter to the correct standards report
1 parent 5ade4e1 commit 3c432bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/CIPPCore/Public/Functions/Get-CIPPTenantAlignment.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function Get-CIPPTenantAlignment {
5252

5353
# Get standards comparison data
5454
$StandardsTable = Get-CIPPTable -TableName 'CippStandardsReports'
55-
$AllStandards = Get-CIPPAzDataTableEntity @StandardsTable
55+
$AllStandards = Get-CIPPAzDataTableEntity @StandardsTable -Filter "PartitionKey ne 'StandardReport'"
5656

5757
# Filter by tenant if specified
5858
$Standards = if ($TenantFilter) {
@@ -263,6 +263,7 @@ function Get-CIPPTenantAlignment {
263263
return $Results
264264
} catch {
265265
Write-Error "Error getting tenant alignment data: $($_.Exception.Message)"
266+
Write-Information $_.InvocationInfo.PositionMessage
266267
throw
267268
}
268269
}

0 commit comments

Comments
 (0)