Lädt...

🔧 How to Add a Data Disk to a Virtual Machine in Microsoft Azure using the Azure Portal


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Introduction

In Microsoft Azure, virtual machines (VMs) often require additional storage beyond their default Operating System (OS) disk. Adding a data disk allows you to expand storage capacity for applications, databases, or file storage. This guide walks you through the process of adding a managed data disk to an Azure VM using the Azure Portal.

To add a data disk to a VM in Microsoft Azure using the Azure Portal, follow these steps:

Step 1: Navigate to the Virtual Machine

  • Log in to the Azure Portal.
  • Select the VM to which you want to add a data disk.

For this example, I created and selected a VM called "DataDiskVM1".

VM

Step 2: Add a Data Disk

  • In the VM's menu, under the "Settings" section, click on "Disks".

Setting + Disk

  • In the "Data disks" section, click on "+ Create and attach a new disk".

Cre8 Disk

Step 3: Configure the Data Disk

  • A new row appears with an empty disk.
  • In the "Create a managed disk" blade:
    • Enter a name for the disk (I used DataDisk1 for this example).
    • Select the Storage type (Standard HDD, Standard SSD, or Premium SSD) - I used the Premium SSD.
    • Choose a Disk Size (e.g., 11 GiB or more).
    • Click Apply.

disk

We have successfully created and added a new data disk to the VM. The next step is to initialize and format the disk in the VM.

Step 4: Initialize and Format the Disk in the VM

  • Connect to the VM using Remote Desktop (Windows VM) or SSH (Linux VM).
    • If you use an iOS PC, download the "Windows App", formerly Windows Remote Desktop from the App Store. Windows users can easily connect to a VM with a Windows image OS.
  • Search and open Disk Management (Windows) or use lsblk and mkfs commands (Linux) to initialize, partition, and format the disk.

disk M

  • Select Ok to initialize the Data Disk.

init

  • After initializing the disk, it should appear as an unallocated disk as shown below. At this stage, we need to format the disk to have a healthy disk we can use in the VM.

Unallocated disk

Take the following steps to format the disk:

  • Right-click on the disk and select "New Simple Volume"

select

  • Select the "format this volume with the following settings", leaving all default settings. However, you can either leave the default name of the disk or rename it. I renamed mine to "DataDisk (Main)"

    • Select "Next" to continue.

Rename Disk

  • At this stage, you're expected to "review + finish" the formatting process of the newly added disk to the VM

final review.

  • Now we have our healthy disk, DataDisk (Main), ready for use.

cre8d Disk

  • To view the disk in the VM, right-click on the DataDisk(Main) to open it.

Open Disk

  • There you go, this is what the newly created Disk looks like in the VM.

done

Conclusion
We have successfully added a data disk to the Azure VM. This additional storage can now be used for application data, logs, or any other purpose.

...

🔧 How to Add a Data Disk to a Virtual Machine in Microsoft Azure using the Azure Portal


📈 51.88 Punkte
🔧 Programmierung

🔧 Creating a Linux Virtual Machine in Azure Portal, Implementing Virtual Machine Scale Set


📈 36.67 Punkte
🔧 Programmierung

🔧 How To Add a Data Disk To A Virtual Machine In Azure: A Guide.


📈 35.03 Punkte
🔧 Programmierung

🔧 Creating and Connecting to a Virtual Machine in a Custom Virtual Network using Azure Portal


📈 34.34 Punkte
🔧 Programmierung

🔧 Creating A Window Virtual Machine, RDP into it, Add a data disc to window virtual machine.


📈 34.22 Punkte
🔧 Programmierung

🔧 Understanding Azure Virtual Machine Scale Sets (VMSS) and How to Create It using Azure portal.


📈 31.9 Punkte
🔧 Programmierung

🔧 How to add a data disk to a Virtual Machine.


📈 30.97 Punkte
🔧 Programmierung

🔧 HOW TO ADD DATA DISK TO A VIRTUAL MACHINE.


📈 30.97 Punkte
🔧 Programmierung

🔧 HOW TO ADD A DATA DISK TO A VIRTUAL MACHINE


📈 30.97 Punkte
🔧 Programmierung

🔧 Grok 3: AI Thông Minh Nhất Thế Giới


📈 28.6 Punkte
🔧 Programmierung

🕵️ Kèo Thẻ Phạt Vip66 Là Gì? 3 Lối Đánh Kèo Chậm Mà Chắc


📈 28.6 Punkte
🕵️ Reverse Engineering

🔧 KISS Principle: Giữ Mọi Thứ Đơn Giản Nhất Có Thể


📈 28.6 Punkte
🔧 Programmierung

🔧 Có thể bạn chưa biết (Phần 1)


📈 28.6 Punkte
🔧 Programmierung

🔧 Azure Applied Skills: Attaching a Data Disk to a Virtual Machine


📈 28.56 Punkte
🔧 Programmierung

🔧 CREATING A LINUX VIRTUAL MACHINE USING AZURE PORTAL


📈 27.84 Punkte
🔧 Programmierung

🔧 How to create Windows 10 or 11 virtual machine using Azure portal.


📈 27.84 Punkte
🔧 Programmierung

🔧 How to create Windows 10 or 11 virtual machine using Azure portal.


📈 27.84 Punkte
🔧 Programmierung

🔧 Creating Virtual Machine Scale Set Using Azure Portal


📈 27.84 Punkte
🔧 Programmierung

🔧 Creating Virtual Machine Scale Set Using Azure Portal


📈 27.84 Punkte
🔧 Programmierung

🔧 Creating and Connecting to a Linux Virtual Machine Using Public Key Authentication on Azure Portal


📈 27.84 Punkte
🔧 Programmierung

🔧 Attach a DATA disk to a Windows VM using the Azure portal And Initialize It for Usage


📈 27.22 Punkte
🔧 Programmierung

🔧 Adding Disk To VM, Azure Compute Gallery and Virtual Machine Scale Set. #Part 2


📈 25.93 Punkte
🔧 Programmierung

🔧 Adding Disk To VM, Azure Compute Gallery and Virtual Machine Scale Set. #Part 1


📈 25.93 Punkte
🔧 Programmierung

🔧 Step-by-Step Guide to Create a Virtual Machine(VM) IN Microsoft Azure Portal.


📈 25.69 Punkte
🔧 Programmierung

🔧 Create a Linux Virtual Machine in the Microsoft Azure Portal for Beginners by jdbastus


📈 25.69 Punkte
🔧 Programmierung

matomo