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.

First principles

A handful of ideas run through every repo. Each screen here is the short version, with a link to the full one.

Three questions, three repos, and a layer on top

Three repos each answer one question about an estate, and two more sit on top of them.

Question Repo Role
How it's built and changed from here avd-landing-zone The deployment orchestrator and portal (over avd-entra, avd-intune, avd-m365, avd-azure and avd-power-platform, decision 0034)
What is there now avd-current-state The collector and validator
What it should be, and why avd-assess The map and the dictionary

The roles are set in family roles. For how these layers close the loop over time, see the bounded RSI specification, the C35 fitness and outcome contract, the ITSM and Change-Gate adapter specification, and decision 0030.

On top of those sits a Desktop DevOps intelligence and execution layer across AVD, Windows 365 and Intune (decision 0012): avd-second-brain is the why and memory over the desktop estate's whole life, and avd-swarm is the agentic operating layer that proposes GitHub-gated plans.

Dependencies point down, never up: avd-landing-zone and avd-current-state are a self-contained pair that keeps working with no second brain and no avd-swarm.

Contracts, not shared code

The repos hand each other versioned, redacted files, never each other's code.

The repos pass versioned, redacted files to each other instead of importing each other's code. Each format has a number (C6 knowledge, C11 current-state facts, C14 target state, C15 the fact register and so on) and one JSON Schema. avd-assess holds the foundation contracts (C11, C15 and the others the foundation reads), avd-second-brain holds the upper layers' own (C14 among them), and repos that read a format keep a byte-identical copy pinned to a commit (brain decision 0021). See avd-assess contracts and avd-second-brain contracts.

Architecture and network diagrams

Reference and estate-specific diagrams export as SVG, Mermaid and Draw.io for design reviews and decision records.

The architecture page publishes four reference diagrams: the five-control-plane logical and contract flow, the 10.100.0.0/22 virtual network and Private Link subnet layout, the end-to-end session and FSLogix traffic paths, and the Bicep module dependency graph. Both the avd-landing-zone deployment portal and the avd-current-state assessment portal also generate live diagrams from your configured C14 target topology or collected C11/C21 assessment state and export them as .svg, .mmd (Mermaid) and .drawio (Draw.io XML) with zero tenant identifiers.

The brain thinks, the swarm acts

The brain can't change anything. Every change is a plan a person approves, with one kill switch.

avd-second-brain never holds a write credential. Every change to an estate is a plan that avd-swarm proposes, a person approves in a GitHub environment, and a governance gate checks against live state. One layered kill switch stops it, and only the owner resets it. See decision 0003 and avd-swarm's governance.

Tenant data stays with the tenant

Only redacted facts leave an estate, and no public repo holds tenant data.

Collectors and validators read an estate; what leaves it is redacted: counts, public values and pseudonyms, never names or IDs. An adopter's estate vault lives in that adopter's private repo. None of the public repos holds tenant data.

Read first, change with approval

Reading is free. Changing anything in the cloud waits for a person's yes.

Scripts and agents read freely. Anything that creates, changes or deletes cloud resources runs only after a person approves it, and every sandbox run comes with a cost estimate and a teardown.

Keep the last copy, stop the meter

A teardown keeps your data and leaves nothing billing, unless you say otherwise.

Teardown removes what a redeploy recreates and keeps the data. Logs and teardown proof go to one run store outside the deployment, kept by default (-TeardownLogs Keep), and deleting data with no checked copy elsewhere needs -DiscardLastCopy, which -Force never implies (never delete the last copy, avd-second-brain decision 0016). Anything that bills by time is removed, stopped or scheduled at the end of a run unless you opt in with -KeepRunning <until>, and recurring commitments such as licenses and Marketplace offers are recorded with their cancel windows, never bought by a script (never leave the meter running, decision 0017). Your own copies go to a separate private companion repo.

Runs anywhere

Every script runs from either Cloud Shell prompt, and on Windows, macOS and Linux.

Every operator script runs from either Cloud Shell prompt, PowerShell or Bash, and anything a person runs on their own machine runs on Windows, macOS and Linux. PowerShell 7 is the baseline; each tool is written once and every command comes in a PowerShell and a Bash form that call it. Each repo lists, per script, which of those are proven by a test or a real run, and the portals offer only those. See decision 0006; the rule, the audit and the gaps are in run anywhere.

Knowledge capture

Every change records what it taught, or says why there's nothing to record.

Each repo records what a change taught in a knowledge base in the shared format, or says why there's nothing to record, and a pull request check asks for it. The format comes from the 2ndbrain template; the AVD lessons live in avd-second-brain's knowledge base. These docs use the same format.

Toolchain lanes

Bicep and PowerShell in the core control-plane repos; Terraform and Packer in avd-hcl.

The core deployment repos (avd-landing-zone and avd-azure) use Bicep, PowerShell, and native Azure, Entra, and Microsoft 365 tooling only. For enterprise estates that prefer Terraform and Packer, avd-hcl provides the parallel HCL path (decision 0016), while keeping HCL out of the Bicep repos per avd-second-brain's lane rules (decision 0012).

Time zones and time sync

Windows time zone IDs govern Azure schedules, fEnableTimeZoneRedirection follows the user, and W32Time keeps clocks aligned.

Intake (intake.workingHours.timeZone) uses IANA time zone names, while Azure scaling plans, auto-shutdown schedules, and target-state manifests use DST-aware Windows time zone IDs; avd-landing-zone refuses deployment on mismatch. Golden images and avd-intune's multi-session baseline enable fEnableTimeZoneRedirection = 1 so sessions reflect the client's local time zone, and W32Time stays protected from WDOT (NT5DS for AD-joined hosts, VMICTimeProvider or NTP for Entra-joined hosts). See avd-assess and avd-second-brain's operations guide.

Digital Twin

An offline, contract-driven State & Simulation Twin models host-drain capacity and logon-storm envelopes at $0 Azure spend before any lab or change runs.

More

The Digital Twin (decision 0031) composes redacted C11, C14, C24, C25, C27, C34, and C18 contracts with fail-closed redaction, 7-day C11 freshness TTLs, and explicit provable-in-state-twin vs requires-ephemeral-twin classification. Admin Twin preferences stay strictly inside the adopter's private vault/ and never act as an auto-approval proxy.

Linked from one page