🔒 Guided

Pre-launch preview. Authorised access only.

Incorrect code

Guided by A Guide to Cloud
Explore AB-900 AI-901
Guided AZ-140 Domain 3
Domain 3 — Module 6 of 7 86%
23 of 28 overall

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region

AZ-140 Study Guide

Domain 1: Plan and Implement an AVD Infrastructure

  • AVD Architecture: The Big Picture Free
  • Network Capacity and Design Free
  • RDP Shortpath, Multipath and QoS Free
  • Private Link and Network Troubleshooting Free
  • Storage Planning for User Data Free
  • File Shares and Azure NetApp Files Free
  • Host Pool Architecture: Personal vs Pooled Free
  • Sizing for Performance and Capacity Free
  • Creating Host Pools and Session Hosts Free
  • Session Host Licensing Free
  • Building Session Host Images Free
  • Image Lifecycle and Compute Gallery Free

Domain 2: Plan and Implement Identity and Security

  • Identity Scenarios for AVD
  • RBAC, Conditional Access and SSO
  • Defending AVD with Microsoft Defender
  • Network Security: NSGs, Firewall, Bastion
  • Threat Protection and Confidential VMs

Domain 3: Plan and Implement User Environments and Apps

  • FSLogix Profile Containers and ODFC
  • FSLogix Cloud Cache and Application Masking
  • AVD Clients: Choose and Deploy
  • User Experience and Session Settings
  • Application Groups and RemoteApp
  • Microsoft 365, Teams and OneDrive on AVD
  • App Attach: Dynamic Application Delivery

Domain 4: Monitor and Maintain an AVD Infrastructure

  • Monitoring AVD with Azure Monitor
  • Autoscaling and Session Management
  • Update Strategy and Backups
  • Disaster Recovery and Multi-Region
Domain 3: Plan and Implement User Environments and Apps Premium ⏱ ~15 min read

Microsoft 365, Teams and OneDrive on AVD

Running Microsoft 365 apps on multi-session AVD hosts requires shared computer activation, special installation modes, and media optimisation for Teams. Learn how to deploy M365 apps, configure OneDrive, optimise Teams, and handle browsers in AVD environments.

Microsoft 365 Apps on AVD — shared computer activation

☕ Simple explanation

Think of shared computer activation as a gym membership card, not a personal home gym.

On your personal laptop, Microsoft 365 activates with your licence and stays activated. That is like having a home gym — it is always yours. On a shared AVD session host, 20 people use the same machine. You cannot “install” Office for each person permanently. Instead, each person swipes their gym membership card (licence) when they arrive. Office checks their card, activates for their session, and deactivates when they leave. The next person swipes their card and gets their own activation.

Shared computer activation is a licensing mode required when deploying Microsoft 365 Apps on multi-session Windows machines like AVD session hosts. Instead of device-based activation (one licence per machine), each user activates their own Microsoft 365 licence when they sign in.

How it works:

  1. Microsoft 365 Apps are installed on the session host with shared computer activation enabled
  2. When a user signs in, Office contacts the Microsoft 365 licensing service
  3. A licensing token is issued and cached in the user’s profile (FSLogix handles this)
  4. Office apps activate with the user’s licence entitlements
  5. When the user signs out, the token expires and the next user gets their own token

This requires users to have a Microsoft 365 licence that includes the desktop apps (E3, E5, Business Premium, etc.).

Deploying M365 Apps for shared activation

Install Microsoft 365 Apps using the Office Deployment Tool (ODT) with a configuration XML:

Key settings in the configuration:

SettingValueWhy
SharedComputerLicensing1Enables shared computer activation (mandatory for multi-session)
ChannelMonthlyEnterprise or CurrentUpdate channel — MonthlyEnterprise is recommended for AVD
ExcludeAppTeams, OneDrive, Access (optional)Exclude apps that are deployed separately or not needed
Display LevelNoneSilent installation for image builds

Install M365 Apps in the golden image, not per session host. When you update the image, all hosts get the new version.

💡 Exam tip: SharedComputerLicensing is mandatory

If the exam asks about deploying Microsoft 365 Apps to multi-session hosts and SharedComputerLicensing is not mentioned in an answer, that answer is wrong. Without shared activation, only one user can activate Office on the machine — all other users get a “Product Activation Failed” error.

Remember: single-session (personal) host pools do NOT need shared computer activation — the machine is dedicated to one user. Shared activation is only for multi-session / pooled scenarios.

OneDrive on multi-session AVD

OneDrive needs special handling on multi-session hosts because multiple users share the same machine.

Per-machine installation (ALLUSERS mode)

OneDrive must be installed in per-machine mode (ALLUSERS=1) on multi-session hosts:

  • Standard OneDrive installs per-user in %localappdata% — this does not work well on shared machines
  • Per-machine installation puts OneDrive binaries in Program Files and runs for all users
  • Updates are handled centrally (no per-user update processes)

Key OneDrive features for AVD

FeatureWhat It DoesWhy It Matters for AVD
Known Folder Move (KFM)Syncs Desktop, Documents, Pictures to OneDriveUsers’ files are backed up and available across sessions
Files On-DemandFiles appear in Explorer but download only when openedSaves profile size — files are not stored in the FSLogix VHD(X)
Silent sign-inAutomatically signs users into OneDrive using their Windows credentialsNo manual sign-in needed each session
Per-machine installOne installation serves all usersMandatory for multi-session — avoids per-user installs

Files On-Demand and FSLogix

Files On-Demand is critical for AVD profile sizing:

  • Without Files On-Demand: all synced files are downloaded to the profile VHD(X) — a user with 50 GB of OneDrive data needs a 50 GB+ profile
  • With Files On-Demand: files show as placeholders and download only when opened — profile stays small
  • Configure via Group Policy or Intune: FilesOnDemandEnabled = 1

🌐 Priya’s OneDrive rollout: “Our first attempt without Files On-Demand was a disaster — profiles ballooned to 40 GB because everyone’s OneDrive content was syncing. We enabled Files On-Demand and average profile size dropped to 8 GB. Ben’s creative team has 200 GB of assets in OneDrive, but only the files they actually open get downloaded to their session.”

Microsoft Teams on AVD — media optimisation

Teams on AVD requires special attention because audio and video processing is resource-intensive.

The problem without media optimisation

Without optimisation, Teams runs entirely on the session host:

  1. User’s microphone audio is sent via RDP to the session host
  2. Session host processes the audio and sends it to the Teams service
  3. Incoming audio from the Teams service is processed on the session host
  4. Processed audio is sent back via RDP to the user’s speakers
  5. Same for video — webcam capture, encoding, decoding all on the session host

This creates: high CPU usage on session hosts, poor audio/video quality, echo, delay, and a terrible user experience — especially with multiple users on the same VM.

The solution: WebRTC Redirector (media optimisation)

Teams media optimisation offloads audio/video processing to the client device:

  1. The WebRTC Redirector Service runs on the session host
  2. When a Teams call starts, audio/video streams are redirected to the client
  3. The client device captures microphone, processes audio, encodes/decodes video
  4. Media streams flow directly between the client and the Teams service
  5. Session host CPU is freed — it only handles the Teams chat and UI
ComponentWhat It DoesWhere It Runs
New Teams clientTeams app with built-in AVD optimisationSession host
WebRTC RedirectorIntercepts media and redirects to clientSession host (service)
Windows App / native clientHandles media processing locallyClient device

Requirements for Teams media optimisation

  • New Teams client (the latest Teams built on Edge WebView2)
  • WebRTC Redirector Service installed on session hosts
  • Windows App or supported native client on the user’s device
  • Web client does NOT support media optimisation

🌐 Priya’s Teams transformation: “Before media optimisation, every Teams call consumed 40% CPU per user on the session host. With 10 users in calls, the VM was maxed out. After enabling the WebRTC Redirector, Teams media runs on the user’s laptop. Session host CPU dropped to 5% per user during calls. Yuki, our compliance officer, was thrilled — call quality finally met our SLA.”

ℹ️ Deep dive: New Teams vs classic Teams on AVD

The new Microsoft Teams client (built on Edge WebView2) has significantly better AVD integration than classic Teams:

  • Better resource usage (up to 50% less memory)
  • Built-in optimisation support without separate MSI installers
  • Faster startup times
  • Improved meeting experiences (gallery view, Together mode)

Classic Teams on AVD required a separate “Teams Machine-Wide Installer” MSI with a specific registry key (IsWVDEnvironment=1). The new Teams simplifies this — it detects the AVD environment automatically.

For the exam, know that the new Teams is the recommended version. Classic Teams on AVD is being deprecated.

Browser considerations

Microsoft Edge — the recommended browser

  • Pre-installed on Windows 11 session host images
  • Supports multimedia redirection (MMR) for optimised video playback
  • Enterprise management via Intune or Group Policy (ADMX templates)
  • Extensions can be centrally managed and enforced

Browser multimedia redirection

MMR works with Edge and Chrome to offload browser-based video to the client:

AspectWith MMRWithout MMR
Video decodingClient deviceSession host
CPU usageLow on session hostHigh on session host
Video qualityNative playback qualityRe-encoded through RDP
Supported sitesYouTube, Vimeo, and compatible streamingAll sites (but poorly)
Question

What is shared computer activation, and when is it required?

Click or press Enter to reveal answer

Answer

Shared computer activation is a licensing mode where each user activates their own Microsoft 365 licence on a shared machine. It is required when deploying Microsoft 365 Apps on multi-session AVD session hosts (pooled host pools). Personal host pools do not need it.

Click to flip back

Question

Why must OneDrive be installed in ALLUSERS mode on multi-session AVD hosts?

Click or press Enter to reveal answer

Answer

Standard OneDrive installs per-user in the local AppData folder, which does not work well on shared machines. ALLUSERS (per-machine) mode installs OneDrive in Program Files so it serves all users with centralised updates.

Click to flip back

Question

How does Files On-Demand help with FSLogix profile sizing?

Click or press Enter to reveal answer

Answer

Files On-Demand shows OneDrive files as placeholders that download only when opened. Without it, all synced files download into the user's FSLogix profile VHD(X), potentially causing massive profile sizes. With it, profiles stay small because only accessed files consume disk space.

Click to flip back

Question

What does the WebRTC Redirector Service do for Teams on AVD?

Click or press Enter to reveal answer

Answer

It intercepts Teams audio/video streams on the session host and redirects them to the client device for local processing. This offloads CPU-intensive media encoding/decoding from the session host, dramatically improving call quality and reducing server load.

Click to flip back

Knowledge Check

Raj is deploying Microsoft 365 Apps to TerraStack's pooled multi-session host pool. He installs Office in the golden image but forgets to enable SharedComputerLicensing. What happens when the second user tries to open Word?

Knowledge Check

Priya notices that OneDrive is consuming 30 GB in user profiles. Users have large OneDrive libraries with video assets. What should Priya enable to reduce profile size?

Knowledge Check

Mia's clinicians report terrible Teams call quality — echo, delay, and choppy video. They connect through the AVD web client. What should Mia change?

🎬 Video coming soon

Microsoft 365, Teams and OneDrive on AVD


Next up: App Attach: Dynamic Application Delivery — deliver apps separately from the OS image using VHD, CIM, and MSIX packages that mount at sign-in.

← Previous

Application Groups and RemoteApp

Next →

App Attach: Dynamic Application Delivery

Guided

I learn, I simplify, I share.

A Guide to Cloud YouTube Feedback

© 2026 Sutheesh. All rights reserved.

Guided is an independent study resource and is not affiliated with, endorsed by, or officially connected to Microsoft. Microsoft, Azure, and related trademarks are property of Microsoft Corporation. Always verify information against Microsoft Learn.