In this article we will see how to upload .vhd image to Windows Azure. You cannot upload image directly from the portal, but it can be done through command prompt. To upload image
1)
Open Windows
Azure SDK Command Prompt as an
administrator from Start -> All
Programs -> Windows Azure SDK v1.x
2)
At command prompt execute the following command
csupload Add-VMImage -Connection
"SubscriptionId=;
CertificateThumbprint=" -Description
"Base image Windows Server 2008 R2" -LiteralPath ""
-Name baseimage.vhd -Location
Where
·
is your
subscription Id
·
is the
thumbprint of the certificate on the management portal.
·
Set the description as Base image Windows Server
2008 R2
·
is the full path of the
.vhd file.
·
Set the name of the image as baseimage.vhd. So,
that the name of the image on portal will be baseimage.vhd
·
set the location
where the hosted service will be deployed. The location can be “East Asia”, “North Central US”, “North
Europe”, “South Central US”, “Southeast Asia”, “West Europe”.
3)
In the Windows
Azure VHD Verification Tool dialog, click OK to allow the VHD to be mounted.
4)
Now it mounts the .vhd file and verifies it. In
this process it generates a compressed file (.preped file) in the same folder as the original image file.
5)
After that it creates a new blob for uploading
the image file and starts uploading the compressed image to the azure account.
It will take significant amount of time. After completion it shows the details.
6)
Once the image is uploaded successfully it shows
the status of the image as Committed.
No comments:
Post a Comment