avd-alert-kql-validation
Skill18 starsChanged 3 months agoMITView on GitHub
Create and review KQL for the FederalAVD AVD Alerts add-on. Use when adding or changing scheduled query alerts, comparing alert logic with Microsoft AVD Insights workbooks, investigating query failures, or documenting intentional workbook deviations.
In this repository9 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- federalavd-air-gapped-readinessSkill
- federalavd-artifact-authoringSkill
- federalavd-bicep-maintenanceSkill
- federalavd-compliance-reviewSkill
- federalavd-deployment-dependency-reviewSkill
- federalavd-policy-authoringSkill
- federalavd-ui-form-maintenanceSkill
- federalavd-windows-policy-validationSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use this workflow for log-based alerts under deployments/add-ons/avdAlerts/.
- Very specific: line 13
Read deployments/add-ons/avdAlerts/README.md, especially Query Design and Validation, and locate the corresponding operator response in …
- Very specific: line 30
Verify overrideQueryTimeRange is at least windowSize multiplied by numberOfEvaluationPeriods and that persistent-event behavior matches …
- Distinctive: line 34
Document every intentional deviation in the add-on README.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AVD Alert KQL Validation
Use this workflow for log-based alerts under deployments/add-ons/avdAlerts/.
Procedure
- Read
deployments/add-ons/avdAlerts/README.md, especially Query Design and Validation, and locate the corresponding operator response inALERT-RESPONSE.md. - Identify the authoritative AVD Insights workbook for the condition. Use the official Microsoft workbook sources listed in workbook sources.
Extract and structurally validate the repository queries:
& .github/skills/avd-alert-kql-validation/scripts/Test-AvdAlertQueries.ps1 ` -ModulePath deployments/add-ons/avdAlerts/modules- To inspect standalone KQL, add
-OutputDirectory <temporary-folder>. Do not commit generated extraction output. - Compare table selection, joins, event names or IDs, status filters, casts, deduplication, and aggregation with the workbook query covering the same condition.
- Adapt interactive workbook queries for alert semantics: remove
render, return rows suitable for the configured aggregation and threshold, and use a bounded time window. - Verify
overrideQueryTimeRangeis at leastwindowSizemultiplied bynumberOfEvaluationPeriodsand that persistent-event behavior matchesautoMitigate. - Preserve cloud compatibility. Do not introduce workspace-specific functions or preview-only KQL without confirming support in every target cloud.
- Document every intentional deviation in the add-on README. The reason must describe alert semantics, noise suppression, cloud compatibility, or source-data behavior.
- Build the affected Bicep entry template and update
ALERT-RESPONSE.mdwhen operator action, thresholds, or dimensions change.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

