agent-landing-zone / infra
AGENTS.md1.2k starsChanged 58 days agoMITView on GitHub
This is the stable repository-wide contract for GitHub Copilot engineering agents. Detailed procedures belong in .github/skills/; file-specific rules belong in .github/instructions/. The assets under .github/agents/ and .github/skills/ guide engineers who develop and operate this repository. They do not define Microsoft Foundry agents, Container Apps, MCP servers, or any other deployed Azure resource. Follow, in this order: 1. Security, privacy, authorization, and platform instructions. 2. Task requirements and acceptance criteria. 3. Executable Bicep, parameter, manifest, and pipeline contracts. 4. .github/copilot-instructions.md, this…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Azure/bicep-ptn-aiml-landing-zoneword for word, first seen Aug 21, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Azure/bicep-ptn-aiml-landing-zone★ 19100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- infra/.github/copilot-instructions.mdCopilot instructions
- architecture-decisionSkill
- documentation-consistencySkill
- engineering-principlesSkill
- multi-repo-releaseSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- architecture-decisionSkill
- deployment-operationsSkill
- documentation-consistencySkill
- engineering-principlesSkill
- iac-validationSkill
- release-managementSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- terraform-parity-proposalSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 1 is common, 9 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Follow, in this order:
- Distinctive: line 22
Do not guess when missing information could affect identity, networking, compatibility, releases, or production.
- Very specific: line 53
Keep main.bicep as the orchestrator.
- Distinctive: line 66
Add capabilities in this order: described Bicep parameter, matching parameter file value, empty-substitution fallback when needed, …
- Distinctive: line 70
Treat parameter names, defaults, allowed values, output names, manifest fields, App Configuration keys, and module interfaces as …
- Very specific: line 79
Prefer managed identity and least-privilege RBAC.
- Very specific: line 81
Read role IDs and abbreviations from constants/.
- Common: line 82
Never hardcode tenant IDs, subscription IDs, credentials, or environment- specific resource names.
- Distinctive: line 86
Treat private DNS, private endpoint ordering, subnet delegation and sizing, hub/spoke peering, route tables, and public-network-access …
- Distinctive: line 89
Keep private endpoint creation and dependencies serialized where the existing topology requires it.
- Distinctive: line 103
Never provision, tag, release, or modify production without explicit approval.
- Distinctive: line 107
Run the narrowest existing validation that covers the change, then broaden with risk:
- Distinctive: line 128
Do not invent validation commands or claim Azure behavior from compilation alone.
- Very specific: line 138
Use documentation-consistency whenever behavior, parameters, defaults, outputs, deployment modes, or operator steps change.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AI Landing Zone engineering-agent contract
This is the stable repository-wide contract for GitHub Copilot engineering
agents. Detailed procedures belong in .github/skills/; file-specific rules
belong in .github/instructions/.
The assets under .github/agents/ and .github/skills/ guide engineers who
develop and operate this repository. They do not define Microsoft Foundry
agents, Container Apps, MCP servers, or any other deployed Azure resource.
Priority
Follow, in this order:
- Security, privacy, authorization, and platform instructions.
- Task requirements and acceptance criteria.
- Executable Bicep, parameter, manifest, and pipeline contracts.
.github/copilot-instructions.md, this contract, and applicable scoped instructions.- Local conventions observed in the affected files.
Do not guess when missing information could affect identity, networking, compatibility, releases, or production. Record the uncertainty and obtain a human decision.
Repository purpose and boundaries
This repository is a reusable Azure AI Landing Zone implemented in Bicep. It provides secure, parameterized infrastructure for Microsoft Foundry and related Azure services in standard and network-isolated deployment modes.
main.bicepis the resource-group-scoped orchestrator. It composes AVM and local modules under feature-flag conditions.main.parameters.jsonis the azd parameter and environment-substitution surface.modules/contains reusable resource logic:ai-foundry/: Foundry account, project, connections, and nested resources.networking/: VNets, subnets, NSGs, private DNS, private endpoints, public ingress, Bastion, and Azure Firewall.security/: control-plane and Cosmos DB data-plane role assignments.container-apps/: app-list shaping and runtime configuration values.app-configuration/: App Configuration key-value population.bing-search/: Grounding with Bing resources.
constants/is the source for role IDs and resource abbreviations.scripts/andinstall.ps1contain cross-platform PowerShell automation.pipelines/azuredevops/and.github/workflows/contain validation and deployment automation.tests/contains deterministic preflight tests and the optional hub/spoke integration fixture.manifest.jsonis a release and jumpbox-bootstrap contract. Consumers may extend its pinnedcomponentslist.
Keep main.bicep as the orchestrator. Add reusable resource bodies to focused
modules rather than duplicating them inline. Drive deployment shape from
containerAppsList, modelDeploymentList, databaseContainersList,
storageAccountContainersList, and related data structures instead of
workload-specific branches.
Compatibility and parameterization
- Preserve feature-flag gating and the distinction between standard and Zero Trust/network-isolated deployments.
- Preserve nullable fallback behavior for substituted values. A value that azd can replace with an empty string must have a safe Bicep fallback before it reaches a resource property.
- Add capabilities in this order: described Bicep parameter, matching parameter file value, empty-substitution fallback when needed, module/resource wiring, App Configuration publication when runtime consumers need it, and an output when downstream automation needs it.
- Treat parameter names, defaults, allowed values, output names, manifest fields, App Configuration keys, and module interfaces as compatibility contracts. Prefer additive changes and document migration for breaking ones.
- Preserve
app.target_portfor ingress and Dapr, with8080as the fallback. - Preserve compatibility for consumers that mount this repository at
infra/and overlaymain.parameters.jsonandmanifest.json.
Identity, networking, and naming
- Prefer managed identity and least-privilege RBAC. Keep role assignments
explicit and centralized through
modules/security/. - Read role IDs and abbreviations from
constants/; do not duplicate literals. - Never hardcode tenant IDs, subscription IDs, credentials, or environment- specific resource names.
- Preserve both CAF and legacy naming modes. Explicit resource-name parameters override generated names in both modes.
- Treat private DNS, private endpoint ordering, subnet delegation and sizing, hub/spoke peering, route tables, and public-network-access decisions as security-sensitive contracts.
- Keep private endpoint creation and dependencies serialized where the existing topology requires it.
PowerShell and deployment automation
- PowerShell 7 is the shared script runtime on Windows and POSIX azd hooks.
- Quote external input, avoid logging secrets, fail explicitly on unmet prerequisites, and preserve idempotency.
install.ps1runs under the Windows Custom Script Extension's fixed timeout. Preserve its wall-clock budgets, fatal/optional step distinction, and bounded network operations.- Azure DevOps deploy steps use Bash inside pipeline YAML. When shared behavior changes, keep pipeline and PowerShell semantics aligned where applicable.
- What-If or
azd provision --previewis evidence, not authorization to deploy. Never provision, tag, release, or modify production without explicit approval.
Validation and evidence
Run the narrowest existing validation that covers the change, then broaden with risk:
- Copilot assets:
pwsh ./.github/scripts/Validate-CopilotAssets.ps1 - Validator tests:
pwsh ./tests/scripts/Validate-CopilotAssets.Tests.ps1 - Bicep compile/lint:
az bicep build --file main.bicepandaz bicep lint --file main.bicep - Compiled-template size:
pwsh ./scripts/Measure-MainJsonSize.ps1 - Deterministic preflight tests:
pwsh ./tests/scripts/Invoke-PreflightChecks.Tests.ps1 - Azure-aware preflight:
pwsh ./scripts/Invoke-PreflightChecks.ps1 - Deployment preview:
azd provision --preview - End-to-end validation:
azd provisionin an approved test environment.
Do not invent validation commands or claim Azure behavior from compilation alone. Report commands, results, skipped validation, and residual risk.
Architecture, documentation, and releases
Load engineering-principles for design, meaningful refactoring, Azure
integration, security, testing, or operational changes. Load
architecture-decision for hard-to-reverse changes to boundaries, contracts,
identity, topology, or deployment behavior.
Use documentation-consistency whenever behavior, parameters, defaults,
outputs, deployment modes, or operator steps change. Keep README.md,
CHANGELOG.md, relevant docs/ runbooks, and the public
Azure/AI-Landing-Zones documentation aligned with shipped behavior.
This repository uses semantic versioning. main holds released versions and
develop is the integration branch when present. Before feature work, ensure
the integration branch includes the latest release from main. Release tags
and GitHub Release titles use exactly vMAJOR.MINOR.PATCH; keep
manifest.json, changelog, tag, and release title aligned. Major or minor
changes require Portal and Terraform landing-zone parity review.
Collaboration and handoffs
- Agents deliver decisions, changed contracts, evidence, documentation status, rollback guidance, and residual risks rather than activity summaries.
- Architecture hands implementation explicit boundaries, trade-offs, fitness functions, migration constraints, and open questions.
- Implementation hands validation the changed behavior, affected files, expected compatibility, and required evidence.
- Validation hands release reproducible commands and results, not assumptions.
- Release and production operations require explicit human approval.
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.

