How the AVD repos fit together
Three repos are the foundation: what it is, what it should be, and how we build it across five control planes. Two more sit on top and automate it, so it gets smarter over time. Every diagram on this page can be downloaded as SVG, Mermaid or Draw.io for architecture reviews and decision records.
The layers
Read it from the bottom up. Three repos are the foundation, orchestrating five control planes. The layer on top automates it and makes it smarter over time.
avd-ops: where to start. The map of the repos, what each one does and how they connect. Each repo stays the source of truth for itself.
Makes it smart: avd-second-brain
Desktop DevOps intelligence and memory across AVD, Windows 365 and Intune: remembers why the estate is the way it is and learns from every change. It thinks; it never holds a write credential.
Automates it: avd-swarm
Desktop DevOps agents across AVD, Windows 365 and Intune. They read freely, detect drift and change nothing until a person approves the exact plan, with one kill switch only the owner resets. The avd-assistant chat lives here.
The top layer builds on the foundation. The foundation never needs it.
What it is: avd-current-state
Read-only collection and validation across all five control planes, offline: what is in the environment today, and whether a deployment landed correctly.
What it should be: avd-assess
The target, and why: a research index that links out to Microsoft's published guidance, pinned, and writes new method only for a gap.
How we build it: avd-landing-zone
Builds the landing zone in Bicep and orchestrates the five control planes through the portal-guided Cloud Shell flow, with preflight checks, cleanup and same-tenant DR.
Groups, service principals, Conditional Access and Entra Kerberos (entra-manifest.json).
Settings Catalog baselines, compliance policies and device configuration (intune-manifest.json).
Microsoft 365 Apps, OneDrive known-folder move and licensing checks (m365-manifest.json).
Subscription Bicep: VNet, Private Link, Premium Files, host pools and session hosts (azure-outputs.json).
Approval flows, environment governance and connector policies (power-platform-manifest.json).
What it is and How we build it work on their own, with no brain and no swarm. avd-linecheck measures end-user browser reachability and round-trip latency.
1. Logical architecture and contract flows
The repos don't share code. They pass versioned contracts and pinned control-plane handoff manifests. Solid arrows are the family's own paths; dashed ones are optional.
2. Network, subnet and Private Link topology
The Azure landing zone deploys a segmented 10.100.0.0/22 virtual network across six resource groups. Session hosts have no public IP addresses; storage, Key Vault and AVD control-plane traffic stays on Private Endpoints in 10.100.2.0/27.
0.0.0.0/0 to the hub firewall and Private DNS zones can link to central hub zones. The deployment portal generates custom diagrams for your exact pool and Private Link topology.3. Session, identity and storage traffic flows
Session hosts accept zero inbound connections from the internet. User sessions establish outbound Reverse Connect TLS channels to the AVD gateway (plus UDP 3478 STUN/TURN for RDP Shortpath), while FSLogix profile mounts stay over SMB 445 to the storage Private Endpoint authenticated with Microsoft Entra Kerberos.
4. Bicep deployment dependency graph (DAG)
In bicep/main.bicep, module dependencies come from explicit outputs so Azure Resource Manager sequences prerequisite stages and parallelizes independent ones.
monitoring deploys first so every subsequent resource and policy diagnostic setting has a Log Analytics workspace and AVD Insights DCR to wire into; keyVault, storage and controlPlane deploy in parallel once privateDns finishes.The contracts
| Contract | From, to | What it carries | Today |
|---|---|---|---|
| C11 facts | avd-current-state to avd-second-brain | A redacted snapshot of the estate across the five control planes: counts, public values and pseudonyms, never names. | Built |
| C14 target state | The target design to avd-landing-zone | The manifest of what to build. The landing zone reads it and refuses anything it doesn't list. | Built |
| C17 run record | avd-landing-zone to avd-second-brain | What a deployment run did, what it cost, and where to resume. | Built |
| C18 lifecycle record | Inside avd-second-brain | One record per environment: use cases, decisions with the alternatives turned down, and every event from birth to retirement, linked to C14, C17 and C10. | Built |
| C9 plans, C10 outcomes | avd-second-brain and avd-swarm | A proposed change with its evidence and its reason, and what happened after a person approved or refused it. | Built |
| C19, C20, C21, C24 | avd-assess method, avd-current-state, avd-second-brain | Intake answers, check rules, the assessment report and the ordered remediation plan. | Built |
Full definitions: contracts in avd-second-brain.
Optional pieces from outside
- Microsoft's published guidance (Microsoft Learn, the Well-Architected Reliability Assessment, the AVD review checklist) is linked and pinned by avd-assess, not copied or rewritten.
- Azure SRE Agent can run beside avd-swarm as an optional add-on. avd-swarm doesn't depend on it.