nerdexam
MicrosoftMicrosoft

AZ-140 · Question #19

AZ-140 Question #19: Real Exam Question with Answer & Explanation

The correct answer is B: At a command prompt, run the sysprep command.. https://docs.microsoft.com/en-us/azure/virtual-machines/image-version-vm-cli Create an image definition If you have generalized the VM (using Sysprep for Windows, or waagent -deprovision for Linux) then you should create a generalized image definition using --os-state generalized

Submitted by packet_pusher· Apr 18, 2026Plan and implement an Azure Virtual Desktop infrastructure

Question

You plan to deploy Azure Virtual Desktop session host virtual machines based on a preconfigured master image. The master image will be stored in a shared image. You create a virtual machine named Image1 to use as the master image. You install applications and apply configuration changes to Image1. You need to ensure that the new session host virtual machines created based on Image1 have unique names and security identifiers. What should you do on Image1 before you add the image to the shared image gallery?

Options

  • AAt a command prompt, run the set computername command.
  • BAt a command prompt, run the sysprep command.
  • CFrom PowerShell, run the rename-computer cmdlet.
  • DFrom the lock screen of the Windows device, perform a Windows Autopilot Reset.

Explanation

https://docs.microsoft.com/en-us/azure/virtual-machines/image-version-vm-cli Create an image definition If you have generalized the VM (using Sysprep for Windows, or waagent -deprovision for Linux) then you should create a generalized image definition using --os-state generalized. If you want to use the VM without removing existing user accounts, create a specialized image definition using - -os-state specialized.

Topics

#Azure Virtual Desktop#Master Image#Sysprep#Session Host Deployment

Community Discussion

No community discussion yet for this question.

Full AZ-140 PracticeBrowse All AZ-140 Questions