exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 5 discussion

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

HOTSPOT -
You have an Azure subscription named Subscription1. Subscription1 contains the resources in the following table.

VNet1 is in RG1. VNet2 is in RG2. There is no connectivity between VNet1 and VNet2.
An administrator named Admin1 creates an Azure virtual machine named VM1 in RG1. VM1 uses a disk named Disk1 and connects to VNet1. Admin1 then installs a custom application in VM1.
You need to move the custom application to VNet2. The solution must minimize administrative effort.
Which two actions should you perform? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
We cannot just move a virtual machine between networks. What we need to do is identify the disk used by the VM, delete the VM itself while retaining the disk, and recreate the VM in the target virtual network and then attach the original disk to it.
Reference:
https://blogs.technet.microsoft.com/canitpro/2014/06/16/step-by-step-move-a-vm-to-a-different-vnet-on-azure/ https://4sysops.com/archives/move-an-azure-vm-to-another-virtual-network-vnet/#migrate-an-azure-vm-between-vnets

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
mlantonis
Highly Voted 3 years, 9 months ago
Correct Answer: We cannot just move a virtual machine between networks. What we need to do is identify the disk used by the VM, delete the VM itself while retaining the disk, and recreate the VM in the target virtual network and then attach the original disk to it. Note: You can change the Subnet a VM is connected to after it's created, but you cannot change the VNet. Reference: https://blogs.technet.microsoft.com/canitpro/2014/06/16/step-by-step-move-a-vm-to-a-different-vnet-on-azure/ https://4sysops.com/archives/move-an-azure-vm-to-another-virtual-network-vnet/#migrate-an-azure-vm-between-vnets https://docs.microsoft.com/en-us/azure/virtual-machines/network-overview
upvoted 246 times
MandAsh
11 months, 2 weeks ago
fianlly you are back! For last 30+ questions I was wondering if I should trust answers are not. But hey trust restored now! lol
upvoted 15 times
sameh.hamza11
5 months, 4 weeks ago
broo, i was thinking about the same thing
upvoted 3 times
...
...
Sidqtqt123
1 year, 2 months ago
Thank you bhai. Aap nhi hote toh kya he hota.
upvoted 3 times
...
...
fedztedz
Highly Voted 4 years, 3 months ago
Correct , not possible to migrate from vnet to another vnet. Must delete VM while keeping the disk. then create a new vm using the saved virtual hard disk
upvoted 113 times
tom999
4 years ago
True. "You can change the subnet a VM is connected to after it's created, but you cannot change the VNet." (https://docs.microsoft.com/en-us/azure/virtual-machines/network-overview)
upvoted 15 times
Def21
2 years, 9 months ago
Still true 5/2022 "You can change the subnet a VM is connected to after it's created. You can't change the virtual network."
upvoted 6 times
...
...
...
adanit2011
Most Recent 1 week, 3 days ago
February 2025, Currently the movement between RG is quite simple, so to answer this question first you: "turn off the VM" Second: "detach the NIC from VNET1" and only then perform the movement between RG1 and RG2, and a third step would be to attach the NIC to VNET2. However, it is not mandatory to detach the NIC from VNET1 before moving since it could be done afterward, so currently, this question might no longer appear or might appear in a different form than described.
upvoted 1 times
...
[Removed]
6 months ago
CORRECT
upvoted 2 times
...
NU88
1 year, 2 months ago
I think the correct answer should be: A. create a network interface in RG2 B. attach the new network interface to the VM C: ( not mentioned in the choices ), detach the old network interface form the VM.
upvoted 2 times
...
DWILK
1 year, 4 months ago
Why wouldn't you just clone it from one vnet to another. You can do that now.
upvoted 1 times
...
CarlosMarin
1 year, 6 months ago
This question was in my exam on 31/08/2023.
upvoted 5 times
lahart99
1 year, 6 months ago
how many questions from here were on your exam?
upvoted 2 times
...
...
kodathedog
1 year, 7 months ago
Answer is still correct. See https://learn.microsoft.com/en-us/answers/questions/950529/help-with-switching-a-vm-to-another-existing-virtu?childtoview=950519#answer-950519
upvoted 1 times
...
Mahbus
1 year, 8 months ago
Is the question changed now? It says "You need to move the custom application to VNet2". While we are here discussing about moving the VM itself. Isn't there an easier method to move the app?
upvoted 4 times
lulzsec2019
1 year, 8 months ago
Did you read all sentences?
upvoted 2 times
...
...
Andreas_Czech
1 year, 9 months ago
tested in LAB because it said -> The solution must minimize administrative effort. the Solution is: 1) "Delete VM1" 2) "Create a new Virtual Machine" it's much more work to move to the other RG, maybe upsize it, create a second nic, ...
upvoted 6 times
...
vbohr899
2 years ago
Cleared Exam today 26 Feb, This question was there in exam.
upvoted 10 times
...
pythoncertification
2 years, 2 months ago
Thank you @mlantonis for your explanations, I have passed the exam with 830,90% questions from here, I did udemy training on Microsoft learn and practice tests, and without ET would have never cleared exam in first attempt thank you all for the contribution.
upvoted 11 times
...
RubenGiess
2 years, 2 months ago
Why cant you just detach the nic from vnet 1 and then attach to vnet 2?
upvoted 6 times
damnboy
6 months, 4 weeks ago
It's not that technically would be impossible for Microsoft to allow us to do it, but when we create virtual resources, we actually don't know where they are placed inside the huge CPD's of Microsoft. When we "create" the VM's, they are provisioned close to the hardware provisioned to the VNet, so the communications mustn't traverse the whole CPD (or even between CPD's in a region) to be able to do ... regular communications with it's own virtual network. Because of that you can change between subnets, because the are all in the same Vnet, so they are all in the same "hardware region".
upvoted 2 times
...
...
NaoVaz
2 years, 5 months ago
1) "Delete VM1" 2) "Create a new Virtual Machine" One can't change the VNET from a VM. We must first delete the VM and re-create it, in the desired VNET.
upvoted 5 times
...
EmnCours
2 years, 6 months ago
Correct Answer: We cannot just move a virtual machine between networks. What we need to do is identify the disk used by the VM, delete the VM itself while retaining the disk, and recreate the VM in the target virtual network and then attach the original disk to it. Note: You can change the Subnet a VM is connected to after it's created, but you cannot change the VNet.
upvoted 1 times
...
manalshowaei
2 years, 8 months ago
We cannot just move a virtual machine between networks. What we need to do is identify the disk used by the VM, delete the VM itself while retaining the disk, and recreate the VM in the target virtual network and then attach the original disk to it.
upvoted 1 times
...
Lazylinux
2 years, 9 months ago
Answer is correct - Currently azure doe NOT allow for VNET migrations
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago