Exam AZ-140 All QuestionsBrowse all questions from this exam
Question 168

You have an Azure subscription that contains an Azure Compute Gallery named Gallery1 and a virtual machine named Template1. Template1 has custom apps and settings configured.

You plan to deploy Azure Virtual Desktop session hosts by using a custom virtual machine image. The solution must meet the following requirements:

• The custom image must be stored in Gallery1.

• The custom image must be based on Template1.

• All new session hosts must have unique computer names and identifiers.

You need to create the custom image.

What should you do in the Azure portal?

    Correct Answer: C

    To deploy Azure Virtual Desktop session hosts with unique computer names and identifiers, you need to generalize the virtual machine (Template1) first. Generalizing a VM removes any specific configurations, such as computer names or unique identifiers, making it suitable for creating multiple instances. From Template1, capture a generalized virtual machine image. This image should then be stored in Gallery1 to be used for deploying new session hosts. This ensures that all deployed session hosts will be based on the custom configurations of Template1 while maintaining uniqueness in their deployment.

Discussion
c7d45f4Option: C

When you generalize a VM, it removes any specific computer names, identifiers, or other settings that would make it unique. This is typically done using a tool like Sysprep on a Windows VM. Once you've generalized the VM, you can create an image from it and store it in Gallery1. This image can then be used to deploy new session hosts in Azure Virtual Desktop.

vipjasonOption: C

C is the only answer that makes sense.

b082cb3Option: C

The correct answer is C. From Template1, capture a generalized virtual machine image. This option: Uses Template1 as the base for the custom image. Allows the image to be stored in Gallery1 (as part of an image definition and version). Ensures that new session hosts deployed from this image will have unique computer names and identifiers. By capturing a generalized image, you're creating a reusable template that maintains the custom apps and settings from Template1 while allowing for the necessary uniqueness in new deployments, which is crucial for Azure Virtual Desktop session hosts.

MarineCellenzaOption: C

C. From Template1, capture a generalized virtual machine image.

ESAJRROption: C

C. From Template1, capture a generalized virtual machine image.

Judith1969Option: C

Image definition: Image definitions are created within a gallery and carry information about the image and requirements for using it internally. This includes whether the image is Windows or Linux, release notes, and minimum and maximum memory requirements. It is a definition of a type of image. source: https://learn.microsoft.com/en-us/azure/virtual-machines/image-version?tabs=portal%2Ccli2 Must be C.