federalavd-bicep-maintenance
Skill18 starsChanged 3 months agoMITView on GitHub
Modify and validate FederalAVD Bicep templates, generated ARM JSON, and deployment parameters. Use when changing Azure resources, module contracts, parameters or outputs, synchronizing Bicep with ARM JSON, publishing Template Specs, or diagnosing Bicep compilation failures.
In this repository9 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- avd-alert-kql-validationSkill
- federalavd-air-gapped-readinessSkill
- federalavd-artifact-authoringSkill
- 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
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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 templates under deployments/, including all session-host policy definitions and nested templates under …
- Distinctive: line 20
Read the complete entry template and the nearest module that directly controls the behavior.
- Distinctive: line 21
Before editing Bicep, obtain current Bicep best practices and the authoritative resource type schema for each resource being changed.
- Very specific: line 29
When a same-name .json exists beside the entry Bicep, always regenerate the tracked ARM JSON with Azure CLI before running the sync test.
- Very specific: line 49
When adding or changing a user-facing parameter, use the federalavd-ui-form-maintenance skill to review the sibling uiFormDefinition.json.
- Distinctive: line 53
Run the narrowest deployment validation available, then inspect the focused diff for generated changes that are larger than expected.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
FederalAVD Bicep Maintenance
Use this workflow for templates under deployments/, including all session-host policy definitions
and nested templates under deployments/shared/modules/orchestration/sessionHostPolicy/.
For automated host-pool policy definitions, initiatives, assignments, nested remediation templates,
or policy RBAC, also use the federalavd-policy-authoring skill.
For uiFormDefinition.json, Azure Portal controls, Form View expressions, or form output mappings,
also use the federalavd-ui-form-maintenance skill.
Procedure
- Read the complete entry template and the nearest module that directly controls the behavior.
- Before editing Bicep, obtain current Bicep best practices and the authoritative resource type schema for each resource being changed. Do not rely on old generated ARM JSON as a schema.
- Trace affected parameters, outputs, module calls, example parameter files, documentation, and deployment scripts. Preserve existing public parameter names unless a breaking change is explicitly required.
- Make the smallest source change in
.bicep. Do not hand-edit generated ARM JSON. - Build the changed Bicep immediately and resolve new errors. Known repository warnings must be distinguished from warnings introduced by the change.
When a same-name
.jsonexists beside the entry Bicep, always regenerate the tracked ARM JSON with Azure CLI before running the sync test. The sync test only builds a temporary comparison file; it does not update the tracked JSON.Build generated-template dependencies before the entry points that load them. Known required orderings are:
shared/modules/orchestration/sessionHostPolicy/modules/templates/RunCommand/PrivateCustomization.bicepbeforeautomatedHostPools/automatedHostPool.bicep.add-ons/sessionHosts/main.bicepbeforeadd-ons/sessionHostReplacer/main.bicep.
az bicep build ` --file deployments/<component>/<component>.bicep ` --outfile deployments/<component>/<component>.json & .github/skills/federalavd-bicep-maintenance/scripts/Test-BicepArmSync.ps1 ` -BicepPath deployments/<component>/<component>.bicep- When adding or changing a user-facing parameter, use the
federalavd-ui-form-maintenanceskill to review the siblinguiFormDefinition.json. Also review example parameter files,docs/parameters.md, and deployment documentation. - Review cross-solution dependencies before changing files under
deployments/. - Run the narrowest deployment validation available, then inspect the focused diff for generated changes that are larger than expected.
See Secret source alignment notes for the postponed standard-vs-automated credential secret sourcing alignment plan. See FSLogix form parity notes before aligning the standard host-pool and standalone storage forms. See storage application sequencing before changing Entra Kerberos, private endpoint, or NTFS permission orchestration.
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.

