agentleFS
Microsoft AzureKnown publisherAzure/FederalAVD/.github/skills/federalavd-bicep-maintenance/SKILL.md

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.

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
  1. Very specific:

    Use this workflow for templates under deployments/, including all session-host policy definitions and nested templates under …

    line 9
  2. Distinctive:

    Read the complete entry template and the nearest module that directly controls the behavior.

    line 20
  3. Distinctive:

    Before editing Bicep, obtain current Bicep best practices and the authoritative resource type schema for each resource being changed.

    line 21
  4. Very specific:

    When a same-name .json exists beside the entry Bicep, always regenerate the tracked ARM JSON with Azure CLI before running the sync test.

    line 29
  5. Very specific:

    When adding or changing a user-facing parameter, use the federalavd-ui-form-maintenance skill to review the sibling uiFormDefinition.json.

    line 49
  6. Distinctive:

    Run the narrowest deployment validation available, then inspect the focused diff for generated changes that are larger than expected.

    line 53

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read the complete entry template and the nearest module that directly controls the behavior.
  2. 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.
  3. 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.
  4. Make the smallest source change in .bicep. Do not hand-edit generated ARM JSON.
  5. Build the changed Bicep immediately and resolve new errors. Known repository warnings must be distinguished from warnings introduced by the change.
  6. When a same-name .json exists 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.bicep before automatedHostPools/automatedHostPool.bicep.
    • add-ons/sessionHosts/main.bicep before add-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
  7. When adding or changing a user-facing parameter, use the federalavd-ui-form-maintenance skill to review the sibling uiFormDefinition.json. Also review example parameter files, docs/parameters.md, and deployment documentation.
  8. Review cross-solution dependencies before changing files under deployments/.
  9. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.