From 8ea17be99ca487f231fff576d72a36179a53bfd6 Mon Sep 17 00:00:00 2001 From: Takeshi Katano Date: Sat, 4 Jan 2025 15:58:01 +0900 Subject: [PATCH] Fix issue #574 https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2/issues/574 --- tools/1_wara_collector.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/1_wara_collector.ps1 b/tools/1_wara_collector.ps1 index c5ee5ff2b..5102e390c 100644 --- a/tools/1_wara_collector.ps1 +++ b/tools/1_wara_collector.ps1 @@ -389,6 +389,7 @@ $Script:Runtime = Measure-Command -Expression { $Script:SupportedResTypes = @() $Script:AllResourceTypesOrdered = @() $Script:AllAdvisories = @() + $Script:Advisories = @() $Script:AllRetirements = @() $Script:AllServiceHealth = @() $Script:results = @() @@ -1330,7 +1331,7 @@ $Script:Runtime = Measure-Command -Expression { $Script:ImpactedResources = $Script:ImpactedResources | Sort-Object -Unique -Property validationAction, recommendationId, name, Type, id, param1, param2, param3, param4, param5, checkName, selector Write-Host 'Filtering Advisor Resources..' -ForegroundColor Cyan - $Script:Advisories = foreach ($adv in $Script:AllAdvisories) { + $Script:Advisories += foreach ($adv in $Script:AllAdvisories) { if ($adv.id -in $Script:InScope.id) { $adv }