From 75abaf24020ef00410e91fab536e6b39741549df Mon Sep 17 00:00:00 2001 From: JulianHayward Date: Thu, 19 Sep 2024 20:42:32 +0200 Subject: [PATCH] 6.5.4 --- README.md | 6 +++++- history.md | 5 +++++ pwsh/AzGovVizParallel.ps1 | 4 ++-- pwsh/dev/devAzGovVizParallel.ps1 | 2 +- pwsh/dev/functions/detailSubscriptions.ps1 | 2 +- version.json | 2 +- 6 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d60c29d4..e793d17d 100644 --- a/README.md +++ b/README.md @@ -84,9 +84,13 @@ The [Azure Governance Visualizer accelerator](https://github.com/Azure/Azure-Gov ## Release history +**Changes** (2024-September-19 / 6.5.4 Patch) + +- minor PSScriptAnalyzer finding resolved + **Changes** (2024-September-17 / 6.5.3 Patch) -- fix stop error for subscriptions with null valued quotaId. the function detailSubscription uses `.startsWith()` method to check for `AAD_` but cannot validate when a null-valued `.quotaId` occurs. +- fix stop error for subscriptions with null valued quotaId. the function detailSubscription uses `.startsWith()` method to check for `AAD_` but cannot validate when a null-valued `.quotaId` occurs. [Full release history](history.md) diff --git a/history.md b/history.md index 4e9c44c5..4d34173f 100644 --- a/history.md +++ b/history.md @@ -4,6 +4,11 @@ ### Azure Governance Visualizer version 6 + +**Changes** (2024-September-19 / 6.5.4 Patch) + +- minor PSScriptAnalyzer finding resolved + **Changes** (2024-September-17 / 6.5.3 Patch) - fix stop error for subscriptions with null valued quotaId. the function detailSubscription uses `.startsWith()` method to check for `AAD_` but cannot validate when a null-valued `.quotaId` occurs. diff --git a/pwsh/AzGovVizParallel.ps1 b/pwsh/AzGovVizParallel.ps1 index 5beabce8..d4708249 100644 --- a/pwsh/AzGovVizParallel.ps1 +++ b/pwsh/AzGovVizParallel.ps1 @@ -365,7 +365,7 @@ Param $Product = 'AzGovViz', [string] - $ProductVersion = '6.5.3', + $ProductVersion = '6.5.4', [string] $GithubRepository = 'aka.ms/AzGovViz', @@ -2435,7 +2435,7 @@ function detailSubscriptions { foreach ($childrenSubscription in $childrenSubscriptions) { $sub = $htAllSubscriptionsFromAPI.($childrenSubscription.name) - if ($sub.subDetails.subscriptionPolicies.quotaId -eq $null) { + if ($null -eq $sub.subDetails.subscriptionPolicies.quotaId) { $null = $script:outOfScopeSubscriptions.Add([PSCustomObject]@{ subscriptionId = $childrenSubscription.name subscriptionName = $childrenSubscription.properties.displayName diff --git a/pwsh/dev/devAzGovVizParallel.ps1 b/pwsh/dev/devAzGovVizParallel.ps1 index ceb80c45..ea1d6151 100644 --- a/pwsh/dev/devAzGovVizParallel.ps1 +++ b/pwsh/dev/devAzGovVizParallel.ps1 @@ -365,7 +365,7 @@ Param $Product = 'AzGovViz', [string] - $ProductVersion = '6.5.3', + $ProductVersion = '6.5.4', [string] $GithubRepository = 'aka.ms/AzGovViz', diff --git a/pwsh/dev/functions/detailSubscriptions.ps1 b/pwsh/dev/functions/detailSubscriptions.ps1 index 5ffca820..c883a13e 100644 --- a/pwsh/dev/functions/detailSubscriptions.ps1 +++ b/pwsh/dev/functions/detailSubscriptions.ps1 @@ -37,7 +37,7 @@ foreach ($childrenSubscription in $childrenSubscriptions) { $sub = $htAllSubscriptionsFromAPI.($childrenSubscription.name) - if ($sub.subDetails.subscriptionPolicies.quotaId -eq $null) { + if ($null -eq $sub.subDetails.subscriptionPolicies.quotaId) { $null = $script:outOfScopeSubscriptions.Add([PSCustomObject]@{ subscriptionId = $childrenSubscription.name subscriptionName = $childrenSubscription.properties.displayName diff --git a/version.json b/version.json index 857c6ff0..620061fe 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "ProductVersion": "6.5.3" + "ProductVersion": "6.5.4" } \ No newline at end of file