Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 1 question 16 discussion

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

Your company has three virtual machines (VMs) that are included in an availability set.
You try to resize one of the VMs, which returns an allocation failure message.
It is imperative that the VM is resized.
Which of the following actions should you take?

  • A. You should only stop one of the VMs.
  • B. You should stop two of the VMs.
  • C. You should stop all three VMs.
  • D. You should remove the necessary VM from the availability set.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
CLagnuts
Highly Voted 3 years, 3 months ago
C. Looks Correct Stop all the VMs in the availability set. Click Resource groups > your resource group > Resources > your availability set > Virtual Machines > your virtual machine > Stop. After all the VMs stop, resize the desired VM to a larger size. Select the resized VM and click Start, and then start each of the stopped VMs.
upvoted 51 times
jackdryan
1 year, 7 months ago
C is correct
upvoted 2 times
...
...
MrJR
Highly Voted 3 years ago
This question is deprecated. I tested and I was able to change the size of a VM, which is in an availability set with two other VMs, without stopping any other VM. With the three VMs up you can resize any of them.
upvoted 30 times
CommanderBigMac
1 year, 8 months ago
All this means is that the change in hardware was supported by whatever the availability set was running on, not that the question is depricated. If your VM(s) are deployed using the Resource Manager (ARM) deployment model and you need to change to a size which requires different hardware then you can resize VMs by first stopping your VM, selecting a new VM size and then restarting the VM. If the VM you wish to resize is part of an availability set, then you must stop all VMs in the availability set before changing the size of any VM in the availability set. The reason all VMs in the availability set must be stopped before performing the resize operation to a size that requires different hardware is that all running VMs in the availability set must be using the same physical hardware cluster. Therefore, if a change of physical hardware cluster is required to change the VM size then all VMs must be first stopped and then restarted one-by-one to a different physical hardware clusters.
upvoted 18 times
...
drainuzzo
2 years, 10 months ago
But the question reported: "You try to resize one of the VMs, which returns an allocation failure message." so you can only stop all the 3 vms
upvoted 23 times
...
...
SeMo0o0o0o
Most Recent 1 month ago
Selected Answer: C
C is correct
upvoted 1 times
...
securityES
1 month, 4 weeks ago
C: should Stop all the VMs in the availability set' as per https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/restart-resize-error-troubleshooting
upvoted 2 times
...
3c5adce
4 months, 3 weeks ago
C. You should stop all three VMs. Stopping all VMs in the availability set can help with the reallocation of resources, making it possible to resize the VM by potentially moving it to a different hardware cluster where the desired VM size is available.
upvoted 1 times
...
18c2076
6 months, 2 weeks ago
C is correct. Key context here is the allocation failure “When you try to start a stopped Azure Virtual Machine (VM), or resize an existing Azure VM, the common error you encounter is an allocation failure. This error results when the cluster or region either does not have resources available or cannot support the requested VM size” https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/restart-resize-error-troubleshooting
upvoted 1 times
...
abhikeshu
7 months, 1 week ago
Selected Answer: D
Option 3 suggests stopping all three VMs. While stopping all VMs might temporarily free up resources within the availability set, it is not the most targeted or efficient solution to address the allocation failure during VM resizing. Additionally, stopping all VMs would disrupt the availability of services running on those VMs, which may not be acceptable in a production environment. Removing only the necessary VM from the availability set, as suggested in option D, allows for a more surgical approach. It addresses the allocation failure specifically for the VM that needs resizing while minimizing disruption to other VMs in the availability set. Once the necessary VM is resized, it can be added back to the availability set to restore its high availability and redundancy features. This approach is more targeted and focused on resolving the specific issue at hand without unnecessary disruption to other resources.
upvoted 2 times
TheFivePips
2 months, 1 week ago
I was wondering this too. Chat GPT said this: If you want to add the VM back into the availability set after resizing, this is not directly supported. You would need to delete the VM (keeping its disks) and recreate it within the availability set, which involves downtime and additional configuration.
upvoted 1 times
TheFivePips
2 months, 1 week ago
Further explanation: Virtual machines (VMs) must be created within an availability set from the beginning; you cannot add an existing VM to an availability set. This is because the placement of VMs within an availability set is determined at the time of their creation to ensure they are distributed across multiple fault and update domains to provide high availability.
upvoted 1 times
...
...
...
Amir1909
7 months, 1 week ago
C is correct
upvoted 1 times
...
Samuel77
10 months ago
C is correct
upvoted 1 times
...
nchebbi
11 months, 1 week ago
C. stopping all the VMs is the correct answer when you try resizing a VM it will attemp to resize on the current hardware cluster that is currently hosting the VM, if the cluster doesn't support it you will get an allocation failure. https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/restart-resize-error-troubleshooting
upvoted 1 times
...
Yuraq
12 months ago
“If your VM(s) are deployed using the Resource Manager (ARM) deployment model and you need to change to a size which requires different hardware then you can resize VMs by first stopping your VM, selecting a new VM size and then restarting the VM. If the VM you wish to resize is part of an availability set, then you must stop all VMs in the availability set before changing the size of any VM in the availability set. The reason all VMs in the availability set must be stopped before performing the resize operation to a size that requires different hardware is that all running VMs in the availability set must be using the same physical hardware cluster. Therefore, if a change of physical hardware cluster is required to change the VM size then all VMs must be first stopped and then restarted one-by-one to a different physical hardware clusters.”
upvoted 2 times
...
Yuraq
12 months ago
If the VM you wish to resize is part of an availability set, then you must stop all VMs in the availability set before changing the size of any VM in the availability set. The reason all VMs in the availability set must be stopped before performing the resize operation to a size that requires different hardware is that all running VMs in the availability set must be using the "If the VM you wish to resize is part of an availability set, then you must stop all VMs in the availability set before changing the size of any VM in the availability set. The reason all VMs in the availability set must be stopped before performing the resize operation to a size that requires different hardware is that all running VMs in the availability set must be using the same physical hardware cluster.
upvoted 1 times
...
fiahbone
1 year ago
Selected Answer: C
Allocation failure message, is the clue here. Obviously I didn't work to resize the VM. If that VM is part of an availability set, all virtual machines in the set must be stopped.
upvoted 1 times
...
GPerez73
1 year, 1 month ago
Just a question to all of you that chose C option. Being an availability set, if we stop the 3 VMs we would lose the availabitly. For me it makes more sense option D What do you think?
upvoted 1 times
...
oopspruu
1 year, 1 month ago
People here who are saying "we tested in lab" are missing the biggest clue in the question. "which returns an allocation failure message" - This clearly means an attempt was made to resize and it failed. Which means all 3 VMs need to be stopped before resizing the desired one.
upvoted 4 times
...
Joshing
1 year, 2 months ago
I haven't actually tested this. But I believe the question hints towards trying to resize one of the VMs to a size that is not available in the same hardware cluster. When at least one of the VMs is still running you will have reduced options to which sizes you can change to. So I think this question hints towards the error showing due to trying to change to a valid VM size but due to the Availability Set it's not available until all VMs are shut down. Correct me if I am wrong though as I haven't tested it and just done a little reading on the matter.
upvoted 2 times
...
Mehedi007
1 year, 2 months ago
Selected Answer: C
"If the Resource Manager (ARM) deployment model was used then the VM(s) can be resized if the VM, and any other VMs in the same availability set, are in a stopped (deallocated) state."
upvoted 1 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 ...