Friday, December 30, 2016

How to attach a data disk in to a virtual machine in azure.

 

This method is only working with the virtual machine created through  classic deployment model.
First select the VM that you want to add an another disk. Then select the Attach > Attached empty Disk. 

virtual machines 
INSTANCES 
NAME 
VIRTUAL MACHINES 
VM2012SVR02 
MOBILE SERVICES 
Win2012-Exch 
CLOUD SERVICES 
BATCH SERVICES 
SOL DATABASES 
STORAGE 
MEDIA SERVICES 
i 
MOBILE ENGAGEMENT 
VISUAL STUDIO TEAM S.. 
BIZTALK SERVICES 
NEW 
IMAGES 
DISKS 
STATUS 
Stopped (Dea 'located) 
Stopped (Deallocated) 
SUBSCRIPTION 
Visual Studio Enterprise 
Visual Studio Enterprise 
LOCATION 
Southeast Asia 
South Central LIS 
DNS NAME 
2svr├ćIoudapp. 
win2012-exch.cloudapp.net 
p 
Attach empty disk 
SHUT cowm 
DETACH DISK

Next windows, you will be able to find the new disk location and it will allow you to setup a new file name and the size of the disk that you want.

The host cache preference - Host Cache Preference settings for an operating system disk or for a data disk improves performance under some circumstances. Host caching is off by default for both read and write operations for data disks. Host-caching is on by default for both read and write operations for operating system disks.

Attach an empty disk to the virtual 
machine 
VIRTUAL MACHINE NAME 
w•12e12svRa2 
STORAGE LOCATION 
https://win2012exch2g31 blob .core.windows.net/vhds, 
FILE NAME 
VM2012SVR-VM2012SVR02-122g-2 
SIZE (G3) 
HOST CACHE PREFERENCE 
NONE 
READ ONLY READ,AURITE

Log into the server and initialize the disk.

Computer Management 
File Action View Help 
Computer Management (Local Volume 
out 
Simple 
Simple 
Basic 
Basic 
File 
NTFS 
NTFS 
em 
System Tools 
Task Scheduler 
Event Viewer 
Shared Folders 
Temporary Storage (D:) 
Status 
Healthy (System, Boot, Active, Crash Dump, Primary 
Healthy (Page File, Primary Partition) 
Local Users and Groups 
Performance 
Device Manager 
Storage 
Windows Server 
Disk Management 
Services and Applications 
Basic 
12700 
Online 
Basic 
700 
Online 
c. Disk 2 
Unknown 
2500 G8 
Not Initialized 
Initialize Disk 
You must ntializa a disk before logical Disk Manager can access t 
e] Disk 2 
e] Disk 3 
use the following partition *yla for the selected disks 
@ M8R (Master 800t Record) 
C) GPT (GLID Partition Table) 
Note: The G PT partition *yle is not recognized by all previous versions of 
Temporary Storage (D:) 
700 NTFS 
Healthy (Page File, Primary Partition) 
2500 
Unallocated 
Unallocated Primary partition

Once you format and assign and drive letter you will be able to use your newly attached Data drive.

File Action View Help 
Computer Management (Local Volume 
out 
Simple 
Simple 
Simple 
File 
NTFS 
NTFS 
NTFS 
em 
System Tools 
Task Scheduler 
Event Viewer 
a-j Shared Folders 
New Volume (E:) 
C:' Temporary Storage (D:) 
Basic 
Basic 
Basic 
Status 
Healthy (System, Boot, Active, Crash Dump, Primary 
Healthy (Primary Partition) 
Healthy (Page File, Primary Partition) 
Local Users and Groups 
Performance 
Device Manager 
Storage 
Windows Server 8ackuF: 
Disk Management 
Services and Applications 
Basic 
700 
Online 
Basic 
2500 
Online 
Temporary Storage (D:) 
700 NTFS 
Healthy (Page File, Primary Partition) 
New Volume (E:) 
2500 NTFS 
Healthy (Primary Partition)

If you want to detach the disk, you can select the disk from drop down and click select for detach.

Detach the disk from the virtual 
machine. 
VIRTUAL MACHINE NAME 
w•12e12svRa2 
ATTACHED DISKS 
VM2012SVR-VM2012SVR02-1-201612291331... 
VM2012SVR-VM2012SVR02 0-201612291315160684 
VM2012SVR-VM2012SVR02-1-201612291331570746

No comments: