Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/scripts/build-recommendation-object.ps1

This file was deleted.

99 changes: 0 additions & 99 deletions .github/workflows/build-recommendation-object.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Azure Resource Graph Query
// Find VMSS instances associated with autoscale settings when autoscale is disabled
// Find VMSS instances (excluding VMSS Flex associated with standalone VMs) associated with autoscale settings when autoscale is disabled
resources
| where type == "microsoft.compute/virtualmachinescalesets"
| where isempty(tostring(tags['aks-managed-poolName']))
Copy link

Copilot AI May 1, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding a brief comment explaining why converting SKU to a string is required, to help future maintainers understand the data type assumptions in this query.

Suggested change
| where isempty(tostring(tags['aks-managed-poolName']))
| where isempty(tostring(tags['aks-managed-poolName']))
// Convert `sku` to a string to ensure consistent handling of its data type, as it might not always be a string.

Copilot uses AI. Check for mistakes.
| where isnotempty(tostring(sku))
| project name, id, tags
| join kind=leftouter (
resources
Expand Down