I created a new VM1 using the new Azure portal (Resource manager?) and attached a new drive (4 GB) to the vm1. and when I RDP to VM1, I can't see the new drive. I deleted the drive and added one of 20gb as I think that there may be a 20gb limit on drives for A0. Still nothing.
Using this Microsoft link I fixed the issue:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-managed-disk-portal?toc=%2Fazure%2Fvirtual-machines%2Fwindows%2Fclassic%2Ftoc.json
How to add a data disk
- Go to the Azure portal to add a data disk. Search for and select Virtual machines.
- Select a virtual machine from the list.
- On the Virtual machine page, select Disks.
- On the Disks page, select Add data disk.
- In the drop-down for the new disk, select Create disk.
- In the Create managed disk page, type in a name for the disk and adjust the other settings as necessary. When you're done, select Create.
- In the Disks page, select Save to save the new disk configuration for the VM.
- After Azure creates the disk and attaches it to the virtual machine, the new disk is listed in the virtual machine's disk settings under Data disks.
How to Initialize a new data disk
- Connect to the VM.
- Select the Windows Start menu inside the running VM and enter diskmgmt.msc in the search box. The Disk Management console opens.
- Disk Management recognizes that you have a new, uninitialized disk and the Initialize Disk window appears.
- Verify the new disk is selected and then select OK to initialize it.
- The new disk appears as unallocated. Right-click anywhere on the disk and select New simple volume. The New Simple Volume Wizard window opens.
- Proceed through the wizard, keeping all of the defaults, and when you're done select Finish.
- Close Disk Management.
- A pop-up window appears notifying you that you need to format the new disk before you can use it. Select Format disk.
- In the Format new disk window, check the settings, and then select Start.
- A warning appears notifying you that formatting the disks erases all of the data. Select OK.
- When the formatting is complete, select OK.
Next steps
- You can also attach a data disk by using PowerShell.
No comments:
Post a Comment