exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 1 question 48 discussion

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

You have an Azure tenant that contains two subscriptions named Subscription1 and Subscription2.
In Subscription1, you deploy a virtual machine named Server1 that runs Windows Server 2016. Server1 uses managed disks.
You need to move Server1 to Subscription2. The solution must minimize administration effort.
What should you do first?

  • A. Create a new virtual machine in Subscription2
  • B. In Subscription2, create a copy of the virtual disk
  • C. Create a snapshot of the virtual disk
  • D. From Azure PowerShell, run the Move-AzureRmResource cmdlet
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
To move existing resources to another resource group or subscription, use the Move-AzureRmResource cmdlet.
References:
https://docs.microsoft.com/en-in/azure/azure-resource-manager/resource-group-move-resources#move-resources

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
dumpmaster
Highly Voted 5 years, 6 months ago
It's D: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/move-vm#use-the-azure-portal-to-move-a-vm-to-a-different-subscription
upvoted 30 times
ToonUp
5 years ago
It looks like Virtual Machine Images are not supported. https://docs.microsoft.com/en-in/azure/azure-resource-manager/management/move-support-resources#microsoftvirtualmachineimages
upvoted 1 times
denkes
5 years ago
It states no support for only "imagestemplates" and "operations".
upvoted 1 times
...
...
...
AnshMan
Highly Voted 5 years, 5 months ago
D is correct. The Move-AzureRmResource cmdlet moves existing resources to a different resource group. That resource group can be in a different subscription. https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/move-azurermresource?view=azurermps-6.13.0
upvoted 12 times
...
haxaffe
Most Recent 4 years, 4 months ago
Should still be B. - Either clone the OS disk to the destination subscription, or move the original disk after deleting the virtual machine from source subscription. - Virtual machines created from Marketplace resources with plans attached can't be moved across subscriptions. For a potential workaround, see Virtual machines with Marketplace plans. https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations#virtual-machines-with-marketplace-plans There is no statement in the question saying this isn't a Marketplace Image.
upvoted 1 times
...
azurecert2021
4 years, 4 months ago
answer is correct additional imp information from link For a move across subscriptions, the resource and its dependent resources must be located in the same resource group and they must be moved together. For example, a VM with managed disks would require the VM and the managed disks to be moved together, along with other dependent resources. If you're moving a resource to a new subscription, check to see whether the resource has any dependent resources, and whether they're located in the same resource group. If the resources aren't in the same resource group, check to see whether the resources can be combined into the same resource group. If so, bring all these resources into the same resource group by using a move operation across resource groups.
upvoted 1 times
...
a_Ri
4 years, 8 months ago
step 1. move the disk with (D) step 2. create a new VM from step 1
upvoted 1 times
...
gboyega
4 years, 10 months ago
Given Answer is correct
upvoted 5 times
...
ExamWynner
4 years, 11 months ago
D - Option 1 on Azure Portal move resource group, pick the VM and related items. Option 2 Powershell, the new CMD is move-AzResource
upvoted 4 times
...
VenuAzure
5 years ago
For a move across subscriptions, the resource and its dependent resources must be located in the same resource group and they must be moved together. For example, a VM with managed disks would require the VM and the managed disks to be moved together, along with other dependent resources. https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription
upvoted 2 times
admins
4 years, 9 months ago
But you could possibly just move the disk?
upvoted 1 times
...
...
MukeshKhamparia
5 years ago
D. From Azure PowerShell, run the Move-AzureRmResource cmdlet https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/move-azurermresource?view=azurermps-6.13.0
upvoted 1 times
...
mohamadakl
5 years ago
Managed Disks in Availability Zones can't be moved to a different subscription. B.Create a copy of of the disk https://docs.microsoft.com/en-in/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations
upvoted 3 times
sourabh7257
4 years, 10 months ago
its not mentioned any Availability Zones in Q.
upvoted 1 times
...
...
Khang
5 years, 3 months ago
Should be D.
upvoted 3 times
...
Ekramy_Elnaggar
5 years, 5 months ago
D is corect
upvoted 5 times
...
Mathew
5 years, 5 months ago
Move-AzureRmResource Moves a resource to a different resource group or subscription.
upvoted 3 times
...
sasi
5 years, 6 months ago
it is B
upvoted 2 times
...
sasi
5 years, 6 months ago
A. In subscription 2 create a copy of the disk
upvoted 1 times
tartar
4 years, 9 months ago
D is ok
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 ...