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