Share via


VM with managed disk in separate resource group

Question

Friday, April 13, 2018 11:11 AM

Hi Guys,

I want to create a VM with managed data disks in another resource group than the VM.  Is that even possible?

Thanks,

Andrew.

Andrew Hodgson

All replies (3)

Saturday, April 14, 2018 5:05 AM ✅Answered

As Nirushi suggested, you can create managed data disk in another resource group and use for VM.

You can create one resource group VM-RG for VM related, and another resource group MD-RG for managed disks and you can add managed disks to VMs as shown below:

Note: You can delete VM related resource group without deleting managed disks.

 

If this answer was helpful, click “Mark as Answer” or “Up-Vote”. To provide additional feedback on your forum experience, click here


Friday, April 13, 2018 12:47 PM

It is possible to add a managed data disk in another resource group to an existing managed VM, but the VM and managed disk should be in the same region and the managed disk shouldn't be assigned to any VM .

You may refer the below article to attach an existing data disk to a VM:

/en-us/azure/virtual-machines/windows/attach-disk-ps

“If this answer was helpful, click “Mark as Answer” or Up-Vote. To provide additional feedback on your forum experience, click here


Friday, April 13, 2018 12:53 PM

Hi,

Thanks for this. The articles I have read including this one are using the single resource group.  I want to use 2 RGs, one for the VM and OS disks, and one for the data disks, so I can refresh the VM by deleteing the VM resource group, but keep the data disks intact.  is there a document explaining that this is indeed possible?

Thanks.

Andrew.the sam

Andrew Hodgson