Skip to content

feat: update resource types to align with resource type of resource id#700

Merged
caseywatson merged 13 commits into
mainfrom
feat/update-resource-types
Apr 3, 2025
Merged

feat: update resource types to align with resource type of resource id#700
caseywatson merged 13 commits into
mainfrom
feat/update-resource-types

Conversation

@kpoineal
Copy link
Copy Markdown
Contributor

@kpoineal kpoineal commented Apr 3, 2025

Overview/Summary

This PR updates the resource types in the recommendations YAML files to align with the resource type of the resource ID.

Related Issues/Work Items

AB#40006

Breaking Changes

None.

As part of this pull request I have

  • Read the Contribution Guide and ensured this PR is compliant with the guide
  • Checked for duplicate Pull Requests
  • Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Ensured PR tests are passing
  • Performed testing and provided evidence (e.g. screenshot of output) for any changes associated to ARG queries
  • Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

Copilot AI review requested due to automatic review settings April 3, 2025 18:38
@kpoineal kpoineal requested review from a team as code owners April 3, 2025 18:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the recommendation YAML files and related KQL queries to align the resource types with the resource ID format.

  • Updated resource types in multiple YAML files for consistency
  • Modified KQL queries to support the new resource type changes
  • Adjusted documentation settings and removed deprecated recommendation blocks

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
azure-resources/Web/sites/recommendations.yaml Updated description and added a recommendation block for Web Site Slots
azure-resources/Web/sites/kql/a1d91661-32d4-430b-b3b6-5adeb0975df7.kql Modified query logic with join conditions and summarization updates
azure-resources/Web/sites/kql/0b80b67c-afbe-4988-ad58-a85a146b681e.kql Updated the AppSettings evaluation logic and query structure
azure-resources/Web/sites/kql/0a535241-8dc4-4058-af03-f2fff0abad2a.kql Added new query for App Service Slot configuration checking
azure-resources/Subscription/subscriptions/kql/98bd7098-49d6-491b-86f1-b143d6b1a0ff.kql Replaced the detailed query with a placeholder comment for under-development status
azure-resources/Sql/servers/recommendations.yaml Changed SQL server resource type to target SQL databases
azure-resources/RecoveryServices/vaults/recommendations.yaml Altered resource type from RecoveryServices vaults to a different resource type
azure-resources/Network/networkWatchers/recommendations.yaml Updated resource type to specify flowlogs
azure-resources/Network/frontDoorWebApplicationFirewallPolicies/recommendations.yaml Removed an existing WAF recommendation block
azure-resources/Network/frontDoorWebApplicationFirewallPolicies/_index.md Updated documentation configuration to hide the section
azure-resources/NetApp/netAppAccounts/recommendations.yaml Changed NetApp resource types to target capacity pools/volumes
azure-resources/Compute/galleries/recommendations.yaml Updated resource type to specify galleries images/versions
azure-resources/Cdn/profiles/recommendations.yaml Updated resource type to originGroups and added a new WAF recommendation block
Comments suppressed due to low confidence (2)

azure-resources/RecoveryServices/vaults/recommendations.yaml:23

  • The resource type for RecoveryServices vaults is changed to Microsoft.Compute/virtualMachines, which seems inconsistent with the file context; please verify if this was intended or if it should remain under RecoveryServices.
recommendationResourceType: Microsoft.Compute/virtualMachines

azure-resources/Cdn/profiles/recommendations.yaml:261

  • The new WAF recommendation block uses 'Microsoft.Cdn/profiles' even though the description focuses on Web Application Firewall monitoring; please review whether the resource type should be updated to better reflect the intended target.
recommendationResourceType: Microsoft.Cdn/profiles

@kpoineal kpoineal changed the title fear: update resource types to align with resource type of resource id feat: update resource types to align with resource type of resource id Apr 3, 2025
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Enhancement 🆕 New feature or request label Apr 3, 2025
Copy link
Copy Markdown
Contributor

@ejhenry ejhenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@caseywatson caseywatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@caseywatson caseywatson merged commit 74e5ea8 into main Apr 3, 2025
@kpoineal kpoineal deleted the feat/update-resource-types branch April 3, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement 🆕 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants