You prepared a template VM with FSLogix and required applications for Azure Virtual Desktop. You plan to capture it as a generalized image and create a new image version in an Azure Compute Gallery. Which two steps must you complete before creating the image version? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Run sysprep with the /oobe /generalize /shutdown options inside the VM, Deallocate the template VM before capturing the image.
Why this is the answer
Before capturing a generalized image for an Azure Compute Gallery, you must prepare the source VM correctly. Running sysprep with the /oobe /generalize /shutdown options removes machine-specific information (like SIDs) and prepares the operating system for imaging, ensuring that new VMs created from this image are unique. The /shutdown option powers off the VM, which is a prerequisite for capturing. Deallocating the template VM is also crucial because you cannot capture an image from a running or allocated VM. Deallocation releases the compute resources and allows the disk to be used for image creation. Incorrect options: Installing the Azure Virtual Desktop Agent and registering it on the template VM is incorrect because the agent should be installed on the golden image, but registration should happen after the session host is deployed from the image and assigned to a host pool. Registering it beforehand would tie the image to a specific host pool, preventing its generalization. Converting the OS disk to a shared disk is not a standard or required step for capturing a generalized image. Shared disks are used for specific scenarios like failover clusters, not for image creation. Enabling boot diagnostics is a troubleshooting feature for VMs and is not a prerequisite for capturing an image.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed