cloudtec GmbH
cloudtec Ltd., Switzerland
+41 31 528 04 55
www.cloudtec.ch

Upload VHD (Image Disk) to Azure

Upload local VHD file to Azure using CSUPLOAD.EXE and PowerShell

Upload local VHD file to Azure using CSUPLOAD.EXE and PowerShell

For this step additional tools are required. I recommend using Windows Azure PowerShell Tools:
http://www.windowsazure.com/en-us/manage/downloads/
and the Windows Azure SDK 1.8 (SDK only):
http://www.windowsazure.com/en-us/develop/downloads/

This is Part 2 of the tutorial Installing Windows 8 on Windows Azure
Part 2: See how to upload your VHD to Azure
Part 3: See how to create a Virtual Machine from VHD in Azure
Part 4: See how to capture an image in Azure after Sysprep
Part 5: See how to deploy Windows 8 in Azure
Video of entire tutorial: Checkout how Windows 8 runs on Azure

After completing the rather long setup procedure, connect Azure PowerShell with your Azure Account: (This can be a bit tricky because you have to find the right parameters and load the certificates etc...) The following commands help to achieve this, however, it is not a step by step tutorial.

Set-ExecutionPolicy RemoteSigned

Import-Module 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1'

Get-AzurePublishSettingsFile

powershell ise
Import-AzurePublishSettingsFile '*E:\PowerShell\ MyAccount.publishsettings*'
Set-AzureSubscription -SubscriptionName *subscriptionname* -CurrentStorageAccount *storageaccountname*
Select-AzureSubscription -SubscriptionName *subscriptionname*

The * text * needs to be replaced with your own values.
The SubscriptionName is located in settings of the Azure control panel.
Further background knowledge concerning these commands can be found in the Azure documentation.

The actual Upload

It took quite a bit of effort to get here, but finally we can upload the VHD to our Azure account.

I use PowerShell to execute the command.
First you need to initialize the Connection
The csupload.exe is only available if you have installed Azure SDK 1.8. The file is located in
C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\bin.
Navigate to this folder and execute:

.\csupload.exe Set-Connection "SubscriptionID=*yourSubscriptionID;CertificateThumbprint=*yourThumbPrint*;ServiceManagementEndpoint=https://management.core.windows.net"

You can find the Subscription ID and Thumbprint in your Azure Account under settings.



Now choose the local VHD and upload it to Azure

.\csupload.exe Add-Disk -Destination "https://*YOURSTORAGENAME*.blob.core.windows.net/vhds/img-win8-v6.vhd" -Label "Windows 8 V6" -LiteralPath "H:\img-win8-v6.vhd" -OS Windows



The upload may take a while depending on your bandwidth; 10 GB took about 40 minutes...
The upload was successful when the following is indicated in the command prompt: Disk *xyz* is registered successfully.

Next step, Part 3: See how to create a Virtual Machine from VHD in Azure


Behalten Sie uns auf dem Radar

Um mehr über wegweisende Webtechnologien, aktuelle Projekte und News rund um cloudtec erfahren möchten, melden Sie sich für unseren Newsletter an.

* Wir versenden max. zwei pro Jahr

 Herr    Frau

Office 365 Passwort läuft nie ab

Office 365 Passwort läuft nie ab

Im Office 365 Admin Panel sucht man vergebens nach einer Checkbox…
Change Image with jquery mouse position

Change Image with jquery mouse position

How to animate images based on the cursor position using jQuery.
Spitex Portal zur Online-Patientenanmeldung

Spitex Portal zur Online-Patientenanmeldung

Um den Anmeldeprozess für die ambulante Betreuung von Patientinnen…

Kontakt

Webagentur
cloudtec GmbH
Sandrainstrasse 17
3007 Bern
SWITZERLAND

+41 31 528 04 55
info@cloudtec.ch