Skip to content

Commit 74e5ea8

Browse files
kpoinealejhenryejhenry
authored
feat: update resource types to align with resource type of resource id (#700)
Co-authored-by: Eric Henry <44706965+ejhenry@users.noreply.github.com> Co-authored-by: ejhenry <erhenry@microsoft.com>
1 parent f1e5030 commit 74e5ea8

15 files changed

Lines changed: 94 additions & 74 deletions

File tree

.github/scripts/schemas/aprl-schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ recommendation:
99
recommendationImpact: enum('Low', 'Medium', 'High')
1010
recommendationResourceType: any(
1111
regex('^Microsoft\\.[a-zA-Z0-9.]+/[a-zA-Z0-9]+$'),
12+
regex('^Microsoft\\.[a-zA-Z0-9.]+/[a-zA-Z0-9.]+/[a-zA-Z0-9]+$'),
13+
regex('^Microsoft\\.[a-zA-Z0-9.]+/[a-zA-Z0-9.]+/[a-zA-Z0-9.]+/[a-zA-Z0-9]+$'),
1214
regex('^WellArchitected/[A-Za-z]+$'),
1315
regex('^Specialized\\.Workload/[A-Za-z]+$'))
1416
recommendationMetadataState: enum('Active', 'Disabled')

azure-resources/Network/frontDoorWebApplicationFirewallPolicies/kql/5357ae22-0f52-1a49-9fd4-1f00ace6add0.kql renamed to azure-resources/Cdn/profiles/kql/5357ae22-0f52-1a49-9fd4-1f00ace6add0.kql

File renamed without changes.

azure-resources/Cdn/profiles/recommendations.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
recommendationTypeId: null
157157
recommendationControl: HighAvailability
158158
recommendationImpact: Low
159-
recommendationResourceType: Microsoft.Cdn/profiles
159+
recommendationResourceType: Microsoft.Cdn/profiles/originGroups
160160
recommendationMetadataState: Active
161161
longDescription: |
162162
Front Door health probes help detect unavailable or unhealthy origins, directing traffic to alternate origins if needed.
@@ -252,3 +252,20 @@
252252
learnMoreLink:
253253
- name: Compare pricing between Azure Front Door tiers
254254
url: "https://learn.microsoft.com/azure/frontdoor/understanding-pricing"
255+
256+
- description: Monitor Web Application Firewall
257+
aprlGuid: 5357ae22-0f52-1a49-9fd4-1f00ace6add0
258+
recommendationTypeId: null
259+
recommendationControl: MonitoringAndAlerting
260+
recommendationImpact: High
261+
recommendationResourceType: Microsoft.Cdn/profiles
262+
recommendationMetadataState: Active
263+
longDescription: |
264+
Monitoring the health of your Web Application Firewall and the applications it protects is crucial. This can be achieved through integration with Microsoft Defender for Cloud, Azure Monitor, and Azure Monitor logs, ensuring optimal performance and security.
265+
potentialBenefits: Enhanced security and health insight
266+
pgVerified: false
267+
automationAvailable: false
268+
tags: []
269+
learnMoreLink:
270+
- name: WAF monitoring
271+
url: "https://learn.microsoft.com/azure/web-application-firewall/afds/afds-overview#monitoring"

azure-resources/Compute/galleries/recommendations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
recommendationTypeId: null
44
recommendationControl: HighAvailability
55
recommendationImpact: Medium
6-
recommendationResourceType: Microsoft.Compute/galleries
6+
recommendationResourceType: Microsoft.Compute/galleries/images/versions
77
recommendationMetadataState: Active
88
longDescription: |
99
Keeping a minimum of 3 replicas for production images in Azure's Compute Gallery ensures scalability and prevents throttling in multi-VM deployments by distributing VM deployments across different replicas. This reduces the risk of overloading a single replica.
@@ -20,7 +20,7 @@
2020
recommendationTypeId: null
2121
recommendationControl: HighAvailability
2222
recommendationImpact: Medium
23-
recommendationResourceType: Microsoft.Compute/galleries
23+
recommendationResourceType: Microsoft.Compute/galleries/images/versions
2424
recommendationMetadataState: Active
2525
longDescription: |
2626
Use ZRS for high availability when creating image/VM versions in Azure Compute Gallery, offering resilience against Availability Zone failures. ZRS accounts are advisable in regions with Availability Zones, with the choice of Standard_ZRS recommended over Standard_LRS for these regions.

azure-resources/NetApp/netAppAccounts/recommendations.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
recommendationTypeId: null
2121
recommendationControl: Scalability
2222
recommendationImpact: High
23-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
23+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
2424
recommendationMetadataState: Active
2525
longDescription: |
2626
Standard network feature in Azure NetApp Files enhances IP limits and VNet capabilities, including network security groups, user-defined routes on subnets, and diverse connectivity options.
@@ -37,7 +37,7 @@
3737
recommendationTypeId: null
3838
recommendationControl: HighAvailability
3939
recommendationImpact: High
40-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
40+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
4141
recommendationMetadataState: Active
4242
longDescription: |
4343
Availability zones are distinct locations within an Azure region to withstand local failures. Deploy your workload in multiple availability zones and use application-based replication or Azure NetApp Files cross-zone replication to achieve high availability. Note that failover is a manual process.
@@ -54,7 +54,7 @@
5454
recommendationTypeId: null
5555
recommendationControl: OtherBestPractices
5656
recommendationImpact: High
57-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
57+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
5858
recommendationMetadataState: Active
5959
longDescription: |
6060
Azure NetApp Files' availability zone (AZ) volume placement feature lets you deploy volumes in the same AZ with Azure compute and other services to have within AZ latency and share the same AZ failure domain.
@@ -71,7 +71,7 @@
7171
recommendationTypeId: cda11061-35a8-4ca3-aa03-b242dcdf7319
7272
recommendationControl: HighAvailability
7373
recommendationImpact: High
74-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
74+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
7575
recommendationMetadataState: Active
7676
longDescription: |
7777
Azure NetApp Files snapshot technology ensures stability, scalability, and swift data recoverability without affecting performance. It supports automatic snapshot creation via policies for Azure NetApp Files data.
@@ -88,7 +88,7 @@
8888
recommendationTypeId: c70fc854-2814-4b03-9b93-8ad7b918bfcf
8989
recommendationControl: DisasterRecovery
9090
recommendationImpact: High
91-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
91+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
9292
recommendationMetadataState: Active
9393
longDescription: |
9494
Azure NetApp Files offers a fully managed backup solution enhancing long-term recovery, archiving, and compliance.
@@ -105,7 +105,7 @@
105105
recommendationTypeId: 26f91380-cb68-4642-bb6f-1bce3c64c55e
106106
recommendationControl: DisasterRecovery
107107
recommendationImpact: High
108-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
108+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
109109
recommendationMetadataState: Active
110110
longDescription: |
111111
Azure NetApp Files replication offers data protection by allowing asynchronous cross-region volume replication for application failover in case of regional outages. Volumes can be replicated across regions, not concurrently with cross-zone replication. Note that failover is a manual process.
@@ -122,7 +122,7 @@
122122
recommendationTypeId: null
123123
recommendationControl: DisasterRecovery
124124
recommendationImpact: High
125-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
125+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
126126
recommendationMetadataState: Active
127127
longDescription: |
128128
The cross-zone replication (CZR) feature enables asynchronous data replication between Azure NetApp Files volumes across different availability zones, ensuring data protection and critical application failover in case of zone-wide disasters. Note that failover is a manual process.
@@ -139,7 +139,7 @@
139139
recommendationTypeId: null
140140
recommendationControl: MonitoringAndAlerting
141141
recommendationImpact: Medium
142-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
142+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
143143
recommendationMetadataState: Active
144144
longDescription: |
145145
Azure NetApp Files offers metrics like allocated storage, actual usage, volume IOPS, and latency, enabling a better understanding of usage patterns and volume performance for NetApp accounts.
@@ -190,7 +190,7 @@
190190
recommendationTypeId: e4bebd74-387a-4a74-b757-475d2d1b4e3e
191191
recommendationControl: HighAvailability
192192
recommendationImpact: High
193-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
193+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
194194
recommendationMetadataState: Active
195195
longDescription: |
196196
Certain SMB applications need SMB Transparent Failover for maintenance without interrupting server connectivity. Azure NetApp Files provides this through SMB Continuous Availability for applications like Citrix App Layering, FSLogix user/profile containers, Microsoft SQL Server, MSIX app attach.
@@ -207,7 +207,7 @@
207207
recommendationTypeId: null
208208
recommendationControl: HighAvailability
209209
recommendationImpact: Medium
210-
recommendationResourceType: Microsoft.NetApp/netAppAccounts
210+
recommendationResourceType: Microsoft.NetApp/netAppAccounts/capacityPools/volumes
211211
recommendationMetadataState: Active
212212
longDescription: |
213213
Azure NetApp Files might undergo occasional planned maintenance such as platform updates or service and software upgrades. It's important to be aware of the application's resiliency settings to cope with these storage service maintenance events.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: frontDoorWebApplicationFirewallPolicies
33
geekdocCollapseSection: true
4-
geekdocHidden: false
4+
geekdocHidden: true
55
---
66

77
{{< azure-resources-recommendationlist name="azure-resources-recommendationlist" >}}

azure-resources/Network/frontDoorWebApplicationFirewallPolicies/recommendations.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,3 @@
3131
learnMoreLink:
3232
- name: Azure Web Application Firewall Monitoring and Logging
3333
url: "https://learn.microsoft.com/azure/web-application-firewall/ag/application-gateway-waf-metrics#logs-and-diagnostics"
34-
35-
- description: Monitor Web Application Firewall
36-
aprlGuid: 5357ae22-0f52-1a49-9fd4-1f00ace6add0
37-
recommendationTypeId: null
38-
recommendationControl: MonitoringAndAlerting
39-
recommendationImpact: High
40-
recommendationResourceType: Microsoft.Network/frontdoorWebApplicationFirewallPolicies
41-
recommendationMetadataState: Active
42-
longDescription: |
43-
Monitoring the health of your Web Application Firewall and the applications it protects is crucial. This can be achieved through integration with Microsoft Defender for Cloud, Azure Monitor, and Azure Monitor logs, ensuring optimal performance and security.
44-
potentialBenefits: Enhanced security and health insight
45-
pgVerified: false
46-
automationAvailable: false
47-
tags: []
48-
learnMoreLink:
49-
- name: WAF monitoring
50-
url: "https://learn.microsoft.com/azure/web-application-firewall/ag/ag-overview#waf-monitoring"

azure-resources/Network/networkWatchers/recommendations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
recommendationTypeId: null
2121
recommendationControl: MonitoringAndAlerting
2222
recommendationImpact: Low
23-
recommendationResourceType: Microsoft.Network/networkWatchers
23+
recommendationResourceType: Microsoft.Network/networkWatchers/flowlogs
2424
recommendationMetadataState: Active
2525
longDescription: |
2626
Network security group flow logging is a feature of Azure Network Watcher that logs IP traffic info through a network security group. If in Failed state, monitoring data from the associated resource is not collected.
@@ -54,7 +54,7 @@
5454
recommendationTypeId: null
5555
recommendationControl: MonitoringAndAlerting
5656
recommendationImpact: Medium
57-
recommendationResourceType: Microsoft.Network/networkWatchers
57+
recommendationResourceType: Microsoft.Network/networkWatchers/flowlogs
5858
recommendationMetadataState: Active
5959
longDescription: |
6060
Improves monitoring, security and troubleshooting for Azure and Hybrid connectivity

azure-resources/RecoveryServices/vaults/recommendations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
recommendationTypeId: null
2121
recommendationControl: DisasterRecovery
2222
recommendationImpact: High
23-
recommendationResourceType: Microsoft.RecoveryServices/vaults
23+
recommendationResourceType: Microsoft.Compute/virtualMachines
2424
recommendationMetadataState: Active
2525
longDescription: |
2626
Perform a test failover to validate your BCDR strategy and ensure that your applications are functioning correctly in the target region without impacting your production environment. Test your Disaster Recovery plan periodically without any data loss or downtime, using test failovers.

azure-resources/Sql/servers/recommendations.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
recommendationTypeId: 807e58d0-e385-41ad-987b-4a4b3e3fb563
3838
recommendationControl: HighAvailability
3939
recommendationImpact: High
40-
recommendationResourceType: Microsoft.Sql/servers
40+
recommendationResourceType: Microsoft.Sql/servers/databases
4141
recommendationMetadataState: Active
4242
longDescription: |
4343
By default, Azure SQL Database premium tier provisions multiple copies within the same region. For geo redundancy, databases can be set as Zone Redundant, distributing copies across Azure Availability Zones to maintain availability during regional outages.
@@ -54,7 +54,7 @@
5454
recommendationTypeId: null
5555
recommendationControl: HighAvailability
5656
recommendationImpact: High
57-
recommendationResourceType: Microsoft.Sql/servers
57+
recommendationResourceType: Microsoft.Sql/servers/databases
5858
recommendationMetadataState: Disabled
5959
longDescription: |
6060
During transient failures, the application should handle connection retries effectively with Azure SQL Database. No Database layer configuration is needed; instead, the application must be set up for graceful retrying.
@@ -71,7 +71,7 @@
7171
recommendationTypeId: null
7272
recommendationControl: MonitoringAndAlerting
7373
recommendationImpact: High
74-
recommendationResourceType: Microsoft.Sql/servers
74+
recommendationResourceType: Microsoft.Sql/servers/databases
7575
recommendationMetadataState: Active
7676
longDescription: |
7777
Monitoring and alerting are an important part of database operations. When working with Azure SQL Database, make use of Azure Monitor and SQL Insights to ensure that you capture relevant database metrics.

0 commit comments

Comments
 (0)