exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 1 question 73 discussion

Actual exam question from Microsoft's AZ-303
Question #: 73
Topic #: 1
[All AZ-303 Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer:
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.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-custom-image-powershell

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
TSMRE
Highly Voted 4 years ago
Given answer is correct, custom script extension doesn't do anything for us here
upvoted 24 times
...
Yurth
Highly Voted 4 years ago
1. Run sysprep.exe on VM 2. From Azure CLI, deallocate VM1 and mark VM1 as generalized (3. From the azure CLI run az vm create - but this option isn't available) 3. From Azure CLI, apply a custom script extension
upvoted 6 times
pentium75
3 years, 11 months ago
Why the hell custom script extension? And as the task is to "create a scaleset", shouldn't "create a scaleset" be one of the steps?
upvoted 12 times
...
der3mi
3 years, 4 months ago
This is wrong!
upvoted 1 times
...
...
rxlicon
Most Recent 1 year, 9 months ago
1. Create an image definition by running sysprep. 2. Generalize the image definition 3. Use the image in virtual machine scale set.
upvoted 1 times
...
dkiaidoo
3 years, 2 months ago
Correct
upvoted 1 times
...
moon2351
3 years, 3 months ago
Correct
upvoted 1 times
...
AberdeenAngus
3 years, 5 months ago
Agree with answer. It's not important but the explanation for the answer gives the powershell commands, but the question says the cli. So it's az vm deallocate and az vm generalize
upvoted 1 times
...
quantumray
3 years, 5 months ago
Question appeared On AZ-303 exam on 08/12/2021 - 49 questions, 4Q - Fabrikan case study
upvoted 1 times
...
syu31svc
3 years, 9 months ago
1. Create an image definition by running sysprep. 2. Generalize the image definition 3. Use the image in virtual machine scale set. https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-custom-image-cli Answer is correct
upvoted 5 times
...
AAPaul
3 years, 10 months ago
I had this question in the exam that i took on July 14th 2021
upvoted 2 times
...
AravindITGuy
3 years, 11 months ago
Took exam today passed this morning was on there 6/21/2021
upvoted 5 times
...
nfett
3 years, 11 months ago
ansser is right based on https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-custom-image-cli
upvoted 4 times
...
ranhara
3 years, 12 months ago
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-custom-image-cli
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...