Introduction
An Azure VM Data Disk is a managed disk that provides additional storage for a Virtual Machine (VM) in Microsoft Azure. It is separate from the OS disk and is used to store application data, databases and other files.
In this article, we will be looking at step-by-step guidelines on how to add data disk and initialize it to make it usable on Azure VM.
Guideline on How to Add a Data Disk to a Windows Virtual Machine through the Azure Portal
Step 1: Create and Attach a Data Disk
- Sign in to Azure Portal 👉 Go to: https://portal.azure.com
- Navigate to Virtual Machine
Search for Virtual Machine in the search bar and select
- Click on "Virtual Machines" and select the VM where you want to add a data disk
- Add or create a new resource group
- Choose a virtual machine name, region and availability zone
- Choose the image (OS) and size of the virtual machine
- Create a username and password
- Inbound port roles
Public inbound ports: click on Allow selected ports
Select inbound ports: select HTTP (80)
- Licensing
Click on tick mark(✓)
Click on Next:Disks >
On the disks section leave as default
- Go to the Monitoring to disable the boot diagnostic
- Go to Tag
Give it a name and value
click on Review + create
- Go to Review + create_ and click create
- Deployment in progress
- Click on the Go to Resource
- On the overview go to settings
- Click settings, then select disks
- On Data disks page, click on + create and attach new disk
- On the LUN: Choose disk name, storage type, and size
- Click on apply
- Data Disks Created
Step 3: Initialize and Format the Data Disk
- Click on connect
- Click on select and wait for the validation till it is configured
Click on Download RDP file
Connect to the VM: Use Remote Desktop (RDP) to connect to your Windows VM.
Open Disk Management: Press Win + X and select Disk Management (or type diskmgmt.msc in the search box and press Enter)
On Disk Management Click on create and format hard disk partitions
- Right-click on the unallocated space of the new disk. Select New Simple Volume
- Follow the wizard to assign a drive letter and format the disk Click Next
On the specify volume size use the default and click on next
On the assign drive path click on next
On the format partition give it a name on the volume label and click on next
Now Click on Finish to complete the process
Notice that the new disk is now showing Healthy and no longer unallocated.
Conclusion
This will be the end of our learning on Understanding how to attach new data disks to a Windows virtual machine through the Azure portal. With Azure, you can easily expand your VM’s capacity by adding more data disks or resizing existing ones to meet the demands of your workloads. I hope you had an informative learning journey on this topic.
Top comments (0)