-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Added filter to applicable VMSS ARG queries to filter out AKS managed VMSSs #564
Conversation
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 suggestion.
Files not reviewed (1)
- azure-resources/Compute/virtualMachineScaleSets/kql/1422c567-782c-7148-ac7c-5fc14cf45adc.kql: Evaluated as low risk
Comments skipped due to low confidence (1)
azure-resources/Compute/virtualMachineScaleSets/kql/94794d2a-eff0-2345-9b67-6f9349d0a627.kql:9
- The use of
iff
function is redundant.isempty
already returns a boolean value. Simplify the code to| where isempty(tostring(tags['aks-managed-poolName']))
.
| where iff(isempty(tostring(tags['aks-managed-poolName'])), true, false)
azure-resources/Compute/virtualMachineScaleSets/kql/94794d2a-eff0-2345-9b67-6f9349d0a627.kql
Outdated
Show resolved
Hide resolved
Thanks @judyer28! LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 6 changed files in this pull request and generated no suggestions.
Files not reviewed (1)
- azure-resources/Compute/virtualMachineScaleSets/kql/1422c567-782c-7148-ac7c-5fc14cf45adc.kql: Evaluated as low risk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks Justin!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Overview/Summary
A majority of the VMSS ARG queries do not apply to VMSS that are managed by AKS. This PR adds a filter to applicable ARG queries to filter out AKS managed VMSSs. The filter looks for a tag "aks-managed-poolName" on the VMSS. If it is there then it is considered a managed AKS VMSS. The line below is the filter used to ensure AKS VMSS are not considered as part of the VMSS recommendations.
| where isempty(tostring(tags['aks-managed-poolName']))
Related Issues/Work Items
Fixes AB#38580
Breaking Changes
As part of this pull request I have
main
branch