avd-opsDeploy quietly
Community research project. Use at your own risk. No warranty.Use at your own risk
  • Built on my own time for research and learning. Not affiliated with, endorsed by or supported by my employer or Microsoft.
  • Don't run any of it in production or against tenants that matter. Test in a dedicated lab subscription and tenant first.
  • Provided "as is", without warranty of any kind, under each repo's license. You use it at your own risk and own the Azure charges it incurs.
  • Contributions and forks are welcome and encouraged. See Contribute.

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.

Front door

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.

On top: Desktop DevOps across AVD, Windows 365 and Intune (optional)

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.

Foundation

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.

avd-entra

Groups, service principals, Conditional Access and Entra Kerberos (entra-manifest.json).

avd-intune

Settings Catalog baselines, compliance policies and device configuration (intune-manifest.json).

avd-m365

Microsoft 365 Apps, OneDrive known-folder move and licensing checks (m365-manifest.json).

avd-azure

Subscription Bicep: VNet, Private Link, Premium Files, host pools and session hosts (azure-outputs.json).

avd-power-platform

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.

Your Azure subscription, Microsoft Entra tenant, Intune, Microsoft 365 and Power Platformthe AVD estate: host pools, session hosts, storage, network, identities and device policies

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.

ON TOP: DESKTOP DEVOPS INTELLIGENCE & GATED AUTOMATION (OPTIONAL) FOUNDATION: METHOD, COLLECTION & ORCHESTRATION SELF-CONTAINED PAIR FIVE CONTROL PLANES (DECISION 0009 · PINNED MANIFEST HANDOFFS) Microsoft sources Learn, WARA, AVD review checklist avd-second-brain makes it smart C18 lifecycle · zero write creds avd-swarm automates it gate, kill switch, avd-buddy Azure SRE Agent optional add-on avd-assess what it should be method · C19 intake · C20 rules avd-current-state what it is read-only collector & validator avd-landing-zone how we build it portal-guided Cloud Shell avd-linecheck browser RTT probe client reachability 1. avd-entra groups, CA, Kerberos entra-manifest.json 2. avd-intune settings catalog, compliance intune-manifest.json 3. avd-m365 Apps, OneDrive, licensing m365-manifest.json 4. avd-azure VNet, PEs, Files, pools, hosts azure-outputs.json 5. avd-power-platform approval flows, connectors power-platform-manifest.json Your Azure subscription, Microsoft Entra tenant, Intune, Microsoft 365 and Power Platform the AVD estate: host pools, session hosts, FSLogix storage, Private Link network, identities and device policies linked, pinned C20 rules C19 intake C11 facts C21 report C17 run record C14 target state C9 plans C10 outcomes RTT orchestrates reads all 5 planes deploys approved plans
Data moves up as redacted facts and records; changes move down only from the landing zone (an operator running the five control planes) or from avd-swarm (a plan a person approved). avd-swarm acts on live reads, never on a facts file.

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.

DEDICATED AVD SUBSCRIPTION · POLICY · DEFENDER FOR CLOUD · BUDGET · ACTIVITY LOG TO LAW rg-<prefix>-<env>-network · vnet-<prefix>-<env> (10.100.0.0/22) Default outbound access disabled · NSG on every subnet · Bastion Developer (opt-in) snet-session-hosts (10.100.0.0/23 · 512 IPs) NSG: deny inbound · allow 445 to PE subnet · 443 to AzureCloud/Internet Session Host 1 Zone 1 · Trusted AMA · Entra Join Session Host 2 Zone 2 · Trusted FSLogix · AVD Session Host N Zone 3 · Trusted Zero Public IP Egress Path Standalone: NAT Gateway (dedicated public IP) Hub-peered: UDR 0.0.0.0/0 to Hub Firewall snet-private-endpoints (10.100.2.0/27 · 32 IPs) Private Endpoint network policies enabled · NSG enforces 445 from hosts and 443 from VNet PE: Storage (file) SMB 445 · FSLogix share privatelink.file.core... PE: Key Vault (vault) HTTPS 443 · break-glass privatelink.vaultcore... PE: AVD (connection/feed) HTTPS 443 · host & client PL privatelink.wvd.microsoft.com snet-jumpbox (10.100.2.32/28 · Opt-in) & Private DNS Zones Operator jumpbox (Ubuntu B2als_v2 / Windows Server 2025 B2as_v2) · daily auto-stop · no public IP Private DNS zones (new or existing hub): privatelink.file.core.windows.net · privatelink.vaultcore.azure.net privatelink.wvd.microsoft.com · privatelink-global.wvd.microsoft.com rg-<prefix>-<env>-avd & rg-hosts Host pools (Pooled / Personal · Private Link) Desktop & RemoteApp application groups Workspaces · Autoscale scaling plans Scheduled agent updates (Sat 02:00 local) Encryption at Host · Trusted Launch · Zones 1-3 rg-<prefix>-<env>-storage Premium FileStorage (ZRS) · share "profiles" Microsoft Entra Kerberos authentication Shared key access disabled · public access off Recovery Services vault · daily share backup SMB Contributor / Elevated RBAC at share scope rg-<prefix>-<env>-management Log Analytics workspace · AVD Insights DCR Action group · capacity, health & cost alerts Key Vault (Private Link · RBAC authorization) Break-glass local admin secret Automation account · daily shutdown runbook SMB 445 HTTPS 443
In standalone mode, egress flows through the regional NAT Gateway; in hub-peered mode, a route table directs 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.

End-User Device Windows App / Web Client avd-linecheck browser probe Office, branch or home Entra ID & Intune Conditional Access & MFA Entra Kerberos TGT Intune compliance & policy M365 Apps licensing AVD Control Plane Workspace feed & gateway Connection broker Azure Front Door edge NAT GW / Hub Firewall Outbound HTTPS 443 UDP 3478 STUN / TURN Required AVD & M365 FQDNs Zero inbound ports open Session Host VM (snet-session-hosts · 10.100.0.0/23) No public IP · NSG blocks inbound internet RDAgentBootLoader & Remote Desktop stack FSLogix Apps agent · Entra ID joined Azure Monitor Windows Agent (AMA) → DCR Trusted Launch · Encryption at Host Private Endpoints (snet-private-endpoints · 10.100.2.0/27) Storage PE (file): SMB 445 → Premium FileStorage ZRS Host Pool PE (connection): HTTPS 443 → privatelink.wvd Workspace PE (feed/global): optional private feed discovery Key Vault PE (vault): HTTPS 443 → break-glass secret 1. OIDC + MFA 2. Feed & TLS 443 3. Reverse Connect (outbound only) 4. SMB 445 (FSLogix) + WVD PE 443 5. Egress 443 / UDP 3478 6. Kerberos / MDM
Every protocol path is explicit: OIDC/MFA and Kerberos TGT against Entra ID, Reverse Connect TLS 443 to the AVD broker and gateway, and private SMB 445 to Azure Files.

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.

STAGE 1: TELEMETRY monitoring LAW · DCR · alerts governance Policy · Defender · budget STAGE 2: VNET network VNet · NSGs · NAT GW STAGE 3: DNS privateDns file · vaultcore · wvd STAGE 4: PARALLEL SERVICES keyVault Vault · PE · RBAC storage (+backup) Premium Files · PE · RSV controlPlane Pools · AppGroups · PEs STAGE 5: COMPUTE & AGENT sessionHosts (×N) 1. VMs (Zones 1-3, Trusted) 2. AADLogin + AMA extensions 3. RunCmd: Configure-FSLogix 4. RunCmd: Register-AvdAgent
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

ContractFrom, toWhat it carriesToday
C11 factsavd-current-state to avd-second-brainA redacted snapshot of the estate across the five control planes: counts, public values and pseudonyms, never names.Built
C14 target stateThe target design to avd-landing-zoneThe manifest of what to build. The landing zone reads it and refuses anything it doesn't list.Built
C17 run recordavd-landing-zone to avd-second-brainWhat a deployment run did, what it cost, and where to resume.Built
C18 lifecycle recordInside avd-second-brainOne 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 outcomesavd-second-brain and avd-swarmA proposed change with its evidence and its reason, and what happened after a person approved or refused it.Built
C19, C20, C21, C24avd-assess method, avd-current-state, avd-second-brainIntake answers, check rules, the assessment report and the ordered remediation plan.Built

Full definitions: contracts in avd-second-brain.

Optional pieces from outside