Attach a new datadrive to your Azure VM

Command to attach a datadrive in Azure Virtual Machine

Please execute the below command to attach a data drive of size 1TB to your Azure VM.

PS C:\> Get-AzureVM "Your_Cloud_Service_Name" -Name "Your_VM_Name" | Add-AzureDataDisk -CreateNew -DiskSizeInGB 1024 -DiskLabel "My Data" -LUN1 | Update-AzureVM

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.