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.

Lab walkthrough: empty subscription to validated landing zone

Go from an empty lab subscription to a deployed Azure Virtual Desktop landing zone, validate it with avd-current-state, and tear it down cleanly from Azure Cloud Shell.

More

This walkthrough connects avd-landing-zone and avd-current-state in five self-contained Azure Cloud Shell (PowerShell) steps. Every command block clones or updates its repo, moves into it, and runs the step so a disconnected tab never leaves you stuck (working from Cloud Shell, landing zone lesson 0015). For interactive command generation and output analysis, open the Deployment Portal and the Assessment Portal.

1. Preflight and retail cost estimate ($0)

Check subscription readiness, Entra groups, regional quotas, and retail Azure pricing before creating a single resource.

More
if (-not (Test-Path ~/avd-landing-zone/.git)) { git clone https://github.com/avd-ops/avd-landing-zone.git ~/avd-landing-zone }
Set-Location ~/avd-landing-zone; git checkout -q master; git pull -q --ff-only
./scripts/ops/Connect-AvdLandingZone.ps1
./scripts/ops/Test-AvdSubscriptionReadiness.ps1 -ParameterFile parameters/dev.bicepparam -Location eastus2 -Fix

2. Deploy the dev landing zone (~$0.35 to $0.60/hour while running)

Deploy the dev parameter file (or orchestrate across the five control planes) with daily auto-shutdown enabled by default.

More
if (-not (Test-Path ~/avd-landing-zone/.git)) { git clone https://github.com/avd-ops/avd-landing-zone.git ~/avd-landing-zone }
Set-Location ~/avd-landing-zone; git checkout -q master; git pull -q --ff-only
bash ./scripts/deploy/deploy.sh -p parameters/dev.bicepparam -l eastus2

3. Post-deployment setup and readiness check ($0 extra)

Configure the FSLogix storage Kerberos app, harden the share ACL, and verify session host registration and agent health.

More
if (-not (Test-Path ~/avd-landing-zone/.git)) { git clone https://github.com/avd-ops/avd-landing-zone.git ~/avd-landing-zone }
Set-Location ~/avd-landing-zone; git checkout -q master; git pull -q --ff-only
./scripts/ops/Connect-AvdLandingZone.ps1
./scripts/ops/Test-AvdLandingZoneReadiness.ps1 -NamePrefix avdlz -Environment dev -Fix -AllowHostStart

4. Validate and emit redacted facts with avd-current-state ($0)

Run the independent read-only deployment validator and generate a redacted C11 (avd-current-state-facts/v1) snapshot.

More
if (-not (Test-Path ~/avd-current-state/.git)) { git clone https://github.com/avd-ops/avd-current-state.git ~/avd-current-state }
Set-Location ~/avd-current-state; git checkout -q main; git pull -q --ff-only
./avd_deployment_validator.ps1 -OutputPath ~/clouddrive/avd-validation
./avd_current_state_collector.ps1 -OutputDirectory ~/clouddrive/avd-collector
./avd_current_state_facts.ps1 -InputPath ~/clouddrive/avd-collector -OutputPath ~/clouddrive/avd-facts.json

5. Tear down the lab and verify zero leftovers ($0 after removal)

Remove every billable resource when your lab run is finished while keeping run logs and evidence in the run store.

More
if (-not (Test-Path ~/avd-landing-zone/.git)) { git clone https://github.com/avd-ops/avd-landing-zone.git ~/avd-landing-zone }
Set-Location ~/avd-landing-zone; git checkout -q master; git pull -q --ff-only
./scripts/ops/Remove-Avd.ps1 -NamePrefix avdlz -Environment dev -DiscardLastCopy -Force
Linked from 3 pages