Forum Discussion

NndnG's avatar
NndnG
Brass Contributor
Feb 25, 2022

Can I use Disk, Network Interface and Network Security Group while creating the VM?

Hi,

 

Before creating the VM, I created a Disk, a Network Interface and a Network Security Group.

 

While creating the VM, I didn’t find option so that I can use Disk, Network Interface and Network Security Group that I created before creating the VM. And once the VM was ready, it has own Disk, Network Interface and Network Security Group.

 

Can I use Disk, Network Interface and Network Security Group while creating the VM?

If yes, let me know, how?

 

NndnG

1 Reply

  • You can create a VM from an existing disk, through the Azure Portal: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/create-vm-specialized-portal

    or using PowerShell (refer to the modified version of the script at the bottom: https://www.yobyot.com/cloud/create-an-azure-vm-with-managed-disks-using-powershell/2018/03/15/