Uploading a VHD to Windows Azure

Ok – this is clearly one of those note-to-self posts, I’m sure it’s been blogged about elaborately, and that I have nothing to add, but I want to be able to find it quickly, so if anybody else finds this useful it’s simple a nice to have! Smile

One of the best ways to upload a VHD to Windows Azure is to use csupload (accessible via the ‘Windows Azure Command Prompt’ or in “%ProgramFiles%\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\”

This would make sure the VHD is fixed size and actually compresses the data so transfer times are around a sixth of what I could achieve using other storage tools.

The commands I’ve used to upload –

csupload Set-Connection “SubscriptionID=<subscription iD>;CertificateThumbprint=<management cert thumbprint>;ServiceManagementEndpoint=https://management.core.windows.net/”

csupload Add-Disk -Destination “https://<storage_account_name&gt;.blob.core.windows.net/<container>/<vhd_name>” -Label “<vhd_name>” -LiteralPath “<local_path_to_vhd>” -OS Windows

About Yossi Dahan
I work as a cloud solutions architect in the Azure team at Microsoft UK. I spend my days working with customers helping be successful in the cloud with Microsoft Azure.

One Response to Uploading a VHD to Windows Azure

  1. Sumant says:

    hello Yossi,

    we have uploaded the VHD to a page blob.
    How do we attach it as a disk drive?
    We are using a Worker Role (not VM).
    We have uploaded management certificate and can do a remote desktop connect to the instance.
    Will appreciate a reply.

    – Sumant Sarkar

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: