Azure Virtual Machines adding virtual hard disks VHD
07-May-1414 Leave a comment
See also Azure Powershell and Azure VM with SQL
If you have a Pluralsight subscription then they have a good course “Windows Azure Infrastructure as a Service Essentials” then chapter “Storage and Disks” and screen cast “Creating Virtual Hard Disks”
First create a local VHD
- Start – “Create and format hard disk partitions”
- Action Create VHD
- Set location, size, fixed size, OK
- Right-click on newly created disk and Initialise
- Think MBR – OK
- Detach VHD
Upload local VHD to Azure Storage using Azure Powershell
- Ensure that you can run local scripts, see Azure Powershell post
- Run script:
add-azurevhd -destination http://<address>.blob.core.windows.net/<container>/<blobname>.vhd -LocalFilePath :\vhds\VHD01.vhd
Set as Virtual Machines Disk
- Azure management portal
- Virtual machines
- Disks
- Create, enter name, pick from storage, OK
Attach to the Virtual Machine
- Azure management portal
- Virtual machines
- Select machine
- Dashboard
- Attach – Attach disk
- Read/Write
- Tick, OK