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.

avd-intune

The Microsoft Intune policy-as-code and Windows 365 Cloud PC control plane for desktop estates.

More

Declarative Microsoft Graph Settings Catalog profiles, compliance policies, assignment filters and optional Windows 365 Cloud PC provisioning policies (deviceManagement/virtualEndpoint) for Azure Virtual Desktop and Windows 365 (decision 0034, decision 0012).

The repo is the source of truth: avd-ops/avd-intune. This page says where it fits.

What it does

It configures Intune MDM enrollment, assignment filters, Settings Catalog baselines and optional Windows 365 provisioning policies.

More
  • Checks active Intune and Windows 365 service plans (INTUNE_A*, CPC_E_*, WIN365_*), MDM auto-enrollment scope and Windows Enterprise multi-session enrollment rules in preflight without purchasing commitments.
  • Deploys standard Intune assignment filters (avd-multisession, avd-personal, win365-cloudpc, physical-desktop), Settings Catalog profiles (FSLogix, Watermarking, ScreenCaptureProtection, SessionTimeLimits, DefenderVdiExclusions) and device compliance policies stamped with [avd-ops-<prefix>-<env>].
  • Optionally deploys declarative Windows 365 Cloud PC provisioning policies (enableSingleSignOn: true), user settings (localAdminEnabled: false, scheduled restore points) and Azure Network Connections when -IncludeWin365 is enabled (decision 0012).
  • Assigns Settings Catalog, compliance and Windows 365 policies to the groups from avd-entra.
  • Resolves core host application versions, URIs and hashes (profiles/apps/core-host-apps.json) via Sync-EvergreenApps.ps1 using EUCPilots Evergreen and VcRedist (system-context, required, device-group targeted), optionally invoked from Deploy-AvdIntune.ps1 -SyncApps.
  • Deploy-AvdIntune.ps1 emits intune-manifest.json (avd-ops-intune-manifest/v1) and records created: true|false per policy ID in intune-run-manifest.json (avd-ops-intune-run-manifest/v1).
  • Remove-AvdIntune.ps1 -DiscardLastCopy deletes only policies created by the run (created: true and matching the [avd-ops-<prefix>-<env>] stamp), leaving pre-existing brownfield policies untouched and gating teardown behind -DiscardLastCopy.
# Azure Cloud Shell (PowerShell)
if (-not (Test-Path ~/avd-intune)) { git clone https://github.com/avd-ops/avd-intune.git ~/avd-intune }
Set-Location ~/avd-intune; git checkout -q main; git pull -q --ff-only
./scripts/Deploy-AvdIntune.ps1 -EntraManifestPath ./entra-manifest.json -OutputPath ./intune-manifest.json -RunManifestPath ./intune-run-manifest.json
./scripts/Remove-AvdIntune.ps1 -RunManifestPath ./intune-run-manifest.json -DiscardLastCopy -WhatIf

How it fits

It targets the device groups from avd-entra so session hosts deployed by avd-azure enroll on first boot.

More

Read more in the repo

The repo has the full detail. Start here:

Linked from 11 pages