Study guide
7.2 VM Generations, Secure Boot, vTPM, Enhanced Session Mode & Direct VM Access
Administering Windows Server Hybrid Core Infrastructure AZ-800
Track your progress as you read
Finished sections get a check mark.
1 Introduction & Exam Overview
About Exam AZ-800: Format, Scoring & the September 2026 Retirement
2 Chapter 1: Active Directory Domain Services Architecture & Deployment
1.1 Deploying & Managing Domain Controllers On-Premises 1.2 Domain Controllers in Azure IaaS & Virtualized DC Cloning 1.3 Read-Only Domain Controllers (RODCs) & Password Replication Policies 1.4 Flexible Single Master Operation (FSMO) Roles & Troubleshooting 1.5 Active Directory Sites, Subnets & Site Link Topology 1.6 AD DS Replication: Topology Generation, Convergence & Diagnostics 1.7 Forest and Domain Trust Relationships
3 Chapter 2: AD DS Security Principals, Service Accounts & Domain Join
2.1 Managing Users, Groups & Objects in Multi-Domain and Multi-Forest Environments 2.2 Service Account Types & Group Managed Service Accounts (gMSA) 2.3 Joining Windows Server to AD DS, Microsoft Entra Domain Services & Microsoft Entra ID 2.4 Creating & Managing Users, Groups and Organizational Units at Scale
4 Chapter 3: Hybrid Identity & Microsoft Entra Integration
3.1 Microsoft Entra Connect Sync Architecture, Installation & Filtering 3.2 SourceAnchor, Synchronization Rules & Microsoft Entra Connect Health 3.3 Microsoft Entra Cloud Sync & Disconnected Multi-Forest Topologies 3.4 Hybrid Authentication Methods & Staged Rollout 3.5 Microsoft Entra Domain Services 3.6 Integrating Microsoft Entra ID, AD DS & Entra Domain Services: Choosing an Architecture
5 Chapter 4: Group Policy in AD DS and Hybrid Environments
4.1 Group Policy Architecture & Processing Order (LSDOU) 4.2 Group Policy Filtering, Loopback Processing & Client-Side Extensions 4.3 Group Policy Preferences, Item-Level Targeting & Central Store 4.4 Group Policy in Microsoft Entra Domain Services & Fine-Grained Password Policies
6 Chapter 5: Remote Server Management in Hybrid Environments
5.1 Windows Admin Center (WAC) Deployment On-Premises and in Azure 5.2 PowerShell Remoting, WinRM & the Kerberos Double-Hop Problem 5.3 Just Enough Administration (JEA) for Constrained PowerShell Endpoints 5.4 OpenSSH on Windows Server & PowerShell Remoting over SSH 5.5 Secure RDP Access, Remote Desktop Gateway & Azure Bastion
7 Chapter 6: Hybrid Management with Azure Arc and Azure Services
6.1 Azure Arc-Enabled Servers Architecture & Onboarding 6.2 Azure Machine Configuration & VM Extensions on Arc Servers 6.3 Azure Update Manager: Assessment, Maintenance Configurations & Dynamic Scoping 6.4 Azure Automation for Hybrid Workloads: Runbooks & Hybrid Runbook Workers
8 Chapter 7: Hyper-V Virtualization & Virtual Machine Configuration
7.1 Hyper-V Type 1 Architecture, Installation & Hardware Prerequisites 7.2 VM Generations, Secure Boot, vTPM, Enhanced Session Mode & Direct VM Access 7.3 Compute, Dynamic Memory & Hardware Acceleration 7.4 VM Resource Controls, CPU Groups & Host Compute Partitioning 7.5 Hyper-V Virtual Hard Disks & Checkpoint Management 7.6 Hyper-V Virtual Switches, NIC Teaming & Switch Embedded Teaming (SET) 7.7 Integration Services, Guest Components & Time Synchronization
9 Chapter 8: Hyper-V High Availability, Security & Containers
8.1 Hyper-V Failover Clustering & Cluster Shared Volumes (CSV) 8.2 Hyper-V Replica & Azure Site Recovery (ASR) 8.3 Guarded Fabric & Shielded Virtual Machines 8.4 Windows Server Container Hosts, Isolation Models & Images 8.5 Managing Container Instances & Linux Containers with WSL 8.6 Windows Container Networking & AKS Enabled by Azure Arc 8.7 Managing Container Images, Tags & Azure Container Registry
10 Chapter 9: Azure IaaS Virtual Machine Administration
9.1 Azure VM Sizing, Series Selection & Managed Disk Tiers 9.2 Azure VM Host Caching, Disk Bursting, Ephemeral OS Disks & Disk Operations 9.3 Azure VM High Availability: Availability Sets, Zones & Proximity Placement Groups 9.4 Virtual Machine Scale Sets, Autoscale & Azure Dedicated Hosts 9.5 Azure VM Networking, NSGs & Connectivity
11 Chapter 10: Hybrid DNS Infrastructure & Name Resolution
10.1 Active Directory-Integrated DNS Architecture, Dynamic Updates & Zone Types 10.2 DNS Records, Aging & Scavenging and the GlobalNames Zone 10.3 DNS Forwarding, Conditional Forwarding & Azure DNS Zone Integration 10.4 Hybrid Name Resolution with Azure DNS Private Resolver 10.5 Windows Server DNS Policies & DNSSEC
12 Chapter 11: IP Addressing, DHCP & IPAM Management
11.1 DHCP Server Role, the DORA Lifecycle & Active Directory Authorization 11.2 DHCP Scopes, Option Hierarchy, Reservations & Relay Agents 11.3 DHCP High Availability & Failover Configurations 11.4 IP Address Management (IPAM) Deployment & Auditing 11.5 Resolving IP Address Issues in Hybrid Environments
13 Chapter 12: Hybrid Network Connectivity, Remote Access & Private Access
12.1 Remote Access Role, VPN Protocols & Site-to-Site VPN to Azure 12.2 Network Policy and Access Services (NPAS), RADIUS & Policy Processing 12.3 Azure Network Adapter & Azure Extended Network 12.4 Web Application Proxy & Microsoft Entra Application Proxy 12.5 Microsoft Entra Private Access & Global Secure Access 12.6 Azure Relay & Hybrid Connections
14 Chapter 13: File Services, DFS, SMB & Azure File Sync
13.1 Windows Server File Share Access, NTFS Permissions & Access-Based Enumeration 13.2 File Server Resource Manager: Quotas, File Screens & Storage Reports 13.3 DFS Namespaces (DFS-N) & DFS Replication (DFS-R) 13.4 BranchCache: Distributed Cache and Hosted Cache Modes 13.5 Modern SMB Protocols, SMB Multichannel & SMB over QUIC 13.6 Azure File Shares, Tiers & Hybrid Permissions 13.7 Azure File Sync, Cloud Tiering & Monitoring 13.8 Migrating DFS Namespaces & DFS Replication to Azure File Sync
15 Chapter 14: Windows Server Storage Infrastructure & High Availability
14.1 Disk Partitioning, Volumes & Enterprise File Systems (NTFS vs ReFS) 14.2 Data Deduplication Architecture, Usage Types & Management 14.3 Storage Spaces & Storage Spaces Direct (S2D) 14.4 Storage Replica & Storage Quality of Service 14.5 iSCSI Target Server, IQNs, CHAP Authentication & Multipath I/O
7.2 VM Generations, Secure Boot, vTPM, Enhanced Session Mode & Direct VM Access
Key Takeaways Explain This Topic AI
Generation 2 VMs use UEFI firmware, GPT boot disks up to 64 TB, synthetic SCSI controllers, and PXE boot over a standard network adapter; Generation 1 keeps legacy BIOS and emulated IDE.
A Generation 2 VM booting a Linux distribution needs Secure Boot set to the Microsoft UEFI Certificate Authority template, because the default Microsoft Windows template rejects Linux shim loaders.
A virtual TPM must be enabled before BitLocker can protect a Generation 2 guest, and enabling vTPM automatically turns on the VM's Encryption Supported or Shielded security policy.
Enhanced Session Mode carries clipboard, audio, printer, USB, and drive redirection over the VMBus RDP channel, so it works even when the guest has no network connectivity.
PowerShell Direct and SSH Direct reach a guest over VMBus sockets with no network path at all, which is the only way to configure a VM attached solely to a private virtual switch.
Last updated: August 2026
- VM Generations, Secure Boot, vTPM, Enhanced Session Mode & Direct VM Access
- 1. Generation 1 vs Generation 2 Virtual Machines
When creating a virtual machine in Hyper-V, administrators must select between Generation 1 and Generation 2 architectures. This decision is immutable; once a VM is created, its generation cannot be changed in-place. +-----------------------------------------------------------------------------------------+
- | GENERATION 1 VS GENERATION 2 ARCHITECTURE |
- | |
- | [GENERATION 1 VM (Legacy)] [GENERATION 2 VM (Modern)] |
- | +------------------------------------+ +------------------------------------+ |
- | | Firmware: Legacy BIOS | | Firmware: UEFI 2.3.1c+ | |
- | | Boot Partition: MBR (Max 2 TB) | | Boot Partition: GPT (Up to 64 TB) | |
- | | Emulated Hardware: | | Pure Synthetic Architecture: | |
- | | - Intel 440BX Motherboard Chipset | | - No Emulated Chipset / Motherbd | |
- | | - S3 Trio Video Controller | | - Synthetic SCSI Boot Controller | |
- | | - Emulated IDE for Boot Disk | | - Synthetic Network Adapter (PXE) | |
- | | - Legacy DEC 21140 NIC for PXE | | - Virtual TPM (vTPM 2.0) Support | |
- | | - PS/2 Keyboard & Mouse Ports | | - Secure Boot (Windows & Linux) | |
- | +------------------------------------+ +------------------------------------+ |
- +-----------------------------------------------------------------------------------------+
- Architectural Comparison Matrix
- Feature Generation 1 Virtual Machines Generation 2 Virtual Machines
- Firmware Engine Legacy BIOS UEFI (Unified Extensible Firmware Interface)
- Boot Disk Partitioning Master Boot Record (MBR) (2 TB limit) GUID Partition Table (GPT) (up to 64 TB)
Boot Storage Controller IDE Controller (Emulated; Primary IDE Channel 0) SCSI Controller (Synthetic; bootable natively)
Storage Controller Limit Max 4 IDE devices (2 controllers x 2 channels) Max 256 SCSI disks (4 controllers x 64 disks)
Network Boot (PXE) Requires Legacy Network Adapter (Emulated 10/100 Mbps; IPv4 only) Synthetic Network Adapter (10 Gbps+; IPv4 and IPv6 PXE boot)
- Secure Boot Not Supported Supported (Authenticode signature verification)
- Virtual TPM (vTPM) Not Supported Supported (TPM 2.0 emulation for BitLocker / VBS)
- Hot-Add / Remove Memory Limited Supported for Dynamic & Static Memory (Win Server 2016+)
- Hot-Add / Remove NIC Not Supported Supported while VM is running (Win Server 2016+)
Supported Guest OS 32-bit and 64-bit OSs (Legacy Windows, Win XP, Server 2003+) 64-bit modern OSs (Windows Server 2012+, Windows 8+, modern Linux)
Physical Device Emulation Emulates Intel 440BX chipset, S3 Trio video, PS/2 ports Zero legacy emulation; communicates exclusively over VMBus # Create a new Generation 2 virtual machine with a 60 GB dynamic VHDX
- New-VM -Name "VM-SVR2025-01" `
- Generation 2 `
- MemoryStartupBytes 4GB `
- NewVHDPath "D:\Hyper-V\Virtual Hard Disks\VM-SVR2025-01.vhdx" `
- NewVHDSizeBytes 60GB `
- SwitchName "vSwitch-External"
Important
AZ-800 Exam Rule: Always deploy Generation 2 virtual machines unless you have an explicit dependency on a 32-bit legacy operating system, an ancient Linux kernel lacking UEFI drivers, or disk images partitioned strictly in MBR format.
2. Secure Boot, vTPM & BitLocker Inside Virtual Machines
Generation 2 virtual machines unlock hardware-rooted security capabilities that protect workloads against bootkits, rootkits, and host storage theft.
Secure Boot Architecture & Templates
Secure Boot validates the digital signature of each boot component (bootloader, operating system kernel, boot-time drivers) against trusted platform keys before execution.
Hyper-V provides specific Secure Boot Templates tailored for different guest operating systems:
Microsoft Windows Template: Default template. Contains certificates to validate Windows bootloaders ( bootmgfw.efi ) and Microsoft-signed kernel drivers.
Microsoft UEFI Certificate Authority Template: Tailored for modern Linux distributions (Ubuntu, Red Hat Enterprise Linux, SUSE, Rocky Linux). Validates Linux bootloaders (e.g., GRUB2 / shim) signed by the third-party Microsoft UEFI CA.
Open Source Shielded VM Template: Used for running Linux workloads inside Shielded VMs under Host Guardian Service. # Verify Secure Boot configuration for a virtual machine
Get-VMFirmware -VMName "VM-LINUX-01"
- # Configure Secure Boot for a Linux virtual machine
- Set-VMFirmware -VMName "VM-LINUX-01" `
- EnableSecureBoot $true `
- SecureBootTemplate "MicrosoftUEFICertificateAuthority"
- Virtual TPM (vTPM 2.0) and BitLocker Deployment
A Virtual TPM (vTPM) allows a Generation 2 VM to receive a virtualized, cryptographically isolated Trusted Platform Module 2.0 device without needing a dedicated physical TPM chip on the host for each guest VM. # Step 1: Enable Key Storage Drive / Key Protector for the VM
- # Generates a localized cryptographic key protector on the Hyper-V host
- Set-VMKeyProtector -VMName "VM-SVR2025-01" -NewLocalKeyProtector
- # Step 2: Enable Virtual TPM on the Generation 2 VM
- Set-VMSecurity -VMName "VM-SVR2025-01" -VirtualTPMEnabled $true
- # Step 3: Verify security settings
- Get-VMSecurity -VMName "VM-SVR2025-01"
Once vTPM is enabled, administrators can log into the guest OS and enable BitLocker Drive Encryption on the operating system volume ( C: ) exactly like a physical server. BitLocker encrypts the virtual hard disk transparently, ensuring that even if the .vhdx file is stolen from host storage, the data cannot be read without the recovery key.
3. Enhanced Session Mode
Enhanced Session Mode upgrades the standard Hyper-V Virtual Machine Connection tool ( vmconnect.exe ) from a basic emulated video console to a rich, high-performance administrative experience. +-----------------------------------------------------------------------------------------+
- | ENHANCED SESSION MODE ARCHITECTURE |
- | |
- | [ADMINISTRATIVE WORKSTATION / HOST] [GUEST VIRTUAL MACHINE] |
- | +---------------------------------+ +----------------------------------+ |
- | | VMConnect Client (vmconnect.exe)| | Windows / Linux Guest OS | |
- | | - Dynamic Display Resizing | | - Guest RDP Service Endpoint | |
- | | - Bidirectional Clipboard | | (Listening internally) | |
- | | - Local Drive Redirection | | | |
- | | - Smart Card / Audio / USB | | | |
- | +----------------+----------------+ +------------------+---------------+ |
- | | | |
- | +============== VMBus Transport ===================+ |
- | (NO Network Switch / NO TCP 3389 Required) |
- +-----------------------------------------------------------------------------------------+
- How Enhanced Session Mode Operates
Uses Remote Desktop Protocol (RDP) channels, but transmits all traffic over the VMBus in-memory channel instead of a TCP/IP network connection.
Zero Network Dependency: Operates even when the VM has no network adapter, is attached to a Private Virtual Switch, or is completely isolated behind host firewalls.
Capabilities:
Dynamic display resolution resizing and multi-monitor support.
Full bidirectional clipboard redirection (copying text, graphics, and files between host and guest).
Local drive, printer, smart card, and USB device redirection.
Audio input/output redirection.
Configuration Requirements
Enhanced Session Mode must be enabled at both the server/host level and configured at the user client level : # Enable Enhanced Session Mode at the Hyper-V host level
Set-VMHost -EnableEnhancedSessionMode $true
- # Query host Enhanced Session Mode status
- Get-VMHost | Select-Object EnableEnhancedSessionMode
Tip
Host OS Differences: On Windows 10/11 Client Hyper-V, Enhanced Session Mode is enabled by default. On Windows Server , Enhanced Session Mode is disabled by default at the host level and must be explicitly enabled using Set-VMHost -EnableEnhancedSessionMode $true .
4. Direct VM Management: PowerShell Direct & SSH Direct
Hyper-V provides out-of-band administrative connectivity into running virtual machines without relying on traditional network routing, DNS resolution, WinRM listeners over TCP 5985/5986, or exposed firewall ports. +-----------------------------------------------------------------------------------------+
- | POWERSHELL DIRECT & SSH DIRECT OVER VMBUS |
- | |
- | [HYPER-V HOST (Root Partition)] [GUEST VM (Child Partition)] |
- | +---------------------------------+ +----------------------------------+ |
- | | PowerShell Console / Terminal | | Guest OS (Windows / Linux) | |
- | | | | | |
- | | Enter-PSSession -VMName <VM> | | - Local Security Authority (LSA) | |
- | | Invoke-Command -VMName <VM> | | - Windows PowerShell / Bash | |
- | | Copy-VMFile -VMName <VM> | | - Hyper-V Integration Services | |
- | +----------------+----------------+ +------------------+---------------+ |
- | | | |
- | +============== VMBus Direct Socket ===============+ |
- | (Direct Inter-Process Hypervisor Channel) |
- +-----------------------------------------------------------------------------------------+
- PowerShell Direct for Windows Guests
PowerShell Direct establishes a secure remote session from the Hyper-V host directly into a Windows guest VM over VMBus sockets ( AF_HYPERV ).
Prerequisites:
The Hyper-V host must run Windows Server 2016+ or Windows 10+.
The guest VM must run Windows Server 2016+ or Windows 10+.
The VM must be running on the local Hyper-V host.
Valid administrative credentials for the guest operating system must be supplied. # Interactive administrative session into a VM using PowerShell Direct
Enter-PSSession -VMName "VM-SVR2025-01" -Credential (Get-Credential)
- # Execute one-off administrative script blocks inside the guest VM
- Invoke-Command -VMName "VM-SVR2025-01" -Credential (Get-Credential) -ScriptBlock {
- Get-Service -Name w3svc, winrm
- Get-Volume -DriveLetter C
- New-Item -Path "C:\Setup" -ItemType Directory -Force
- }
- # Copy files directly from the host into the guest VM without network shares
- Copy-VMFile -VMName "VM-SVR2025-01" `
- SourcePath "C:\Installers\agent.msi" `
- DestinationPath "C:\Setup\agent.msi" `
- CreateFullPath `
- FileSource Host
- SSH Direct for Linux Guests
Starting with Windows Server 2019/2022 and modern Linux integration kernels, Hyper-V supports SSH Direct over Hyper-V sockets ( AF_HYPERV / vsock ), allowing SSH sessions into Linux guests using the VM's unique Hyper-V GUID without configuring IP networking. # Query the VM GUID for SSH Direct targeting
$vmGuid = (Get-VM -Name "VM-LINUX-01").Id.Guid
- # Connect to the Linux guest via SSH Direct over Hyper-V socket
- ssh -p 22 -o HostKeyAlgorithms=+ssh-rsa root@$vmGuid