An incorrect resource type and count inserted into the slide 12 that generated by 3_wara_reports_generator.ps1.
To Reproduce
Steps to reproduce the behaviour:
Run the 1_wara_collector.ps1 against a subscription that has less resource types and it has Network Watcher resrouces.
Run the 2_wara_data_analyzer.ps1.
Run the 3_wara_reports_generator.ps1.
Expected behaviour
The correct resource type and its count will be inserted.
Screenshots 📷
Additional context
This issue came from the Network Watcher's recommendation (4e133bd0-8762-bc40-a95b-b29142427d73). The recommendation has no resource ID (It has n/a as a resource ID).
The inserted content (resource type and count) is generated by unique resource ID, so the Network Watcher's resource type to be / and aggregated count is 1 even if there are multiple Network Watcher resources.
Describe the bug
An incorrect resource type and count inserted into the slide 12 that generated by
3_wara_reports_generator.ps1
.To Reproduce
Steps to reproduce the behaviour:
1_wara_collector.ps1
against a subscription that has less resource types and it has Network Watcher resrouces.2_wara_data_analyzer.ps1
.3_wara_reports_generator.ps1
.Expected behaviour
The correct resource type and its count will be inserted.
Screenshots 📷
Additional context
This issue came from the Network Watcher's recommendation (4e133bd0-8762-bc40-a95b-b29142427d73). The recommendation has no resource ID (It has
n/a
as a resource ID).The inserted content (resource type and count) is generated by unique resource ID, so the Network Watcher's resource type to be
/
and aggregated count is 1 even if there are multiple Network Watcher resources.https://github.com/Azure/Azure-Proactive-Resiliency-Library-v2/blob/6b9d9938a30c65a336c6f635c9770ea49ac38547/tools/3_wara_reports_generator.ps1#L203-L221