File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Entrypoints/HTTP Functions/Tenant/Standards Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ function Invoke-ListStandardsCompare {
1717 $Table.Filter = " PartitionKey eq '{0}'" -f $TenantFilter
1818 }
1919
20- $Standards = Get-CIPPAzDataTableEntity @Table
20+ $Tenants = Get-Tenants - IncludeErrors
21+ $Standards = Get-CIPPAzDataTableEntity @Table | Where-Object { $_.PartitionKey -in $Tenants.defaultDomainName }
2122
2223 # in the results we have objects starting with "standards." All these have to be converted from JSON. Do not do this is its a boolean
2324 <# $Results | ForEach-Object {
@@ -57,7 +58,7 @@ function Invoke-ListStandardsCompare {
5758 $HexEncodedName = $Matches [2 ]
5859 $Chars = [System.Collections.Generic.List [char ]]::new()
5960 for ($i = 0 ; $i -lt $HexEncodedName.Length ; $i += 2 ) {
60- $Chars.Add ([char ][Convert ]::ToInt32($HexEncodedName.Substring ($i , 2 ), 16 ))
61+ $Chars.Add ([char ][Convert ]::ToInt32($HexEncodedName.Substring ($i , 2 ), 16 ))
6162 }
6263 $FieldName = " $Prefix $ ( -join $Chars ) "
6364 }
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ function Get-CIPPTenantAlignment {
5858 $Standards = if ($TenantFilter ) {
5959 $AllStandards | Where-Object { $_.PartitionKey -eq $TenantFilter }
6060 } else {
61- $AllStandards
61+ $Tenants = Get-Tenants - IncludeErrors
62+ $AllStandards | Where-Object { $_.PartitionKey -in $Tenants.defaultDomainName }
6263 }
6364
6465 # Build tenant standards data structure
Original file line number Diff line number Diff line change @@ -43,11 +43,13 @@ if (!$LastStartup -or $CurrentVersion -ne $LastStartup.Version) {
4343 Write-Information " Version has changed from $ ( $LastStartup.Version ?? ' None' ) to $CurrentVersion "
4444 if ($LastStartup ) {
4545 $LastStartup.Version = $CurrentVersion
46+ $LastStartup | Add-Member - MemberType NoteProperty - Name ' PSVersion' - Value $PSVersionTable.PSVersion.ToString ()
4647 } else {
4748 $LastStartup = [PSCustomObject ]@ {
4849 PartitionKey = ' Version'
4950 RowKey = $env: WEBSITE_SITE_NAME
5051 Version = $CurrentVersion
52+ PSVersion = $PSVersionTable.PSVersion.ToString ()
5153 }
5254 }
5355 Update-AzDataTableEntity @Table - Entity $LastStartup - Force - ErrorAction SilentlyContinue
You can’t perform that action at this time.
0 commit comments