AZ-303 Exam QuestionsBrowse all questions from this exam

AZ-303 Exam - Question 259


DRAG DROP -

You have an Azure virtual machine named VM1 that runs Windows Server 2016.

You install a line-of-business application on VM1.

You need to create a scale set by using VM1 as a custom image.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Select and Place:

Exam AZ-303 Question 259
Show Answer
Correct Answer:
Exam AZ-303 Question 259

Step 1: Run sysprep.exe on VM1.

The final step to prepare your VM for use as a custom image is to generalize the VM. Sysprep removes all your personal account information and configurations, and resets the VM to a clean state for future deployments.

Step 2: From Azure CLI, deallocate VM1 and mark VM1 as generalized,

To create an image, the VM needs to be deallocated. Deallocate the VM with Stop-AzVm. Then, set the state of the VM as generalized with Set-AzVm so that the

Azure platform knows the VM is ready for use a custom image. You can only create an image from a generalized VM.

It may take a few minutes to deallocate and generalize the VM.

Then create an image of the VM with New-AzImageConfig and New-AzImage.

Step 3: Create a virtual machine scale set.

Create a scale set with New-AzVmss that uses the -ImageName parameter to define the custom VM image created in the previous step.

References:

https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-custom-image-powershell

Discussion

5 comments
Sign in to comment
Kraviecc
Jan 16, 2021

Correct

saumenP
Apr 23, 2021

No, The questions are different. Notice the 3rd line in az-303/view/44/.. it doesn't talk about scale set. But in this question, it talks abt scale set.. You need to create an Azure virtual machine by using VM1 as a custom image. Which three actions should you perform in sequence?

altafpatel1984
Feb 13, 2022

given answer already has scaleset. so given answers are correct.

Panchun
Feb 7, 2021

Correct and repeated!

saumenP
May 16, 2021

The questions are different, ref: the 3rd line

JMG73
Feb 16, 2021

repeated question 088 - https://www.examtopics.com/exams/microsoft/az-303/view/44/

leeuw86
Feb 16, 2021

why creating a VMSS ?

s1fd01
Feb 21, 2021

Right in the question; "You need to create a 'scale set' by using VM1 as a custom image."