KB: How to create a Windows 7/Windows 8 Azure VM

Step 1: Prepare the Windows 7/Windows 8 .vhd image

  1. Install Windows 7 on a Hyper-V virtual machine
    1. [IMPORTANT] Create .vhd virtual hard disk insteadl of .vhdx. Azure VM doesn’t support .vhdx.
    2. [IMPORTANT] Install Enterprise edition so the image can be activated when provisioned in Azure.
    3. [IMPORTANT] Enable Remote Desktop (Updated 2013/10/3: It will be enabled by default when provisioning.)
    4. [IMPORTANT] Create an admin account with password. Otherwise cannot login through Remote Desktop.
  2. SYSPREP the Windows 7/Windows 8 VM
    1. Run C:\WINDOWS\system32\sysprep\sysprep.exe
    2. Select the following options:

    3. Press OK and wait until the VM shutdown.

Step 2: Create the Azure Storage Account (if not exist)

Step 3: Prepare the client machine for uploading the .vhd (if necessary)

  1. Download and install Windows Azure Powershell – http://go.microsoft.com/?linkid=9811175&clcid=0x409
  2. Install the Azure management certificate and private key to User Personal cert store.
  3. Get the Azure subscription ID from the “My Bill” page of the Azure Portal.
  4. Start Windows Azure Powershell
  5. Run Set-AzureSubscription –SubscriptionName YourSubcriptionName –Certificate “file path of the management certificate .cer file” – SubscriptionId YourSubscriptionID

Step 4: Upload the .vhd to Azure Storage

  1. Run Select-AzureSubscription –SubscriptionName YourSubcriptionName
  2. Run Add-AzureVhd -Destination http://{YourAzureStore}.blob.core.windows.net/{YourContainer}/{YourVhd}.vhd -LocalFilePath “file path of the .vhd

Step 5: Create Virtual Machine Image

Step 6: Create Virtual Machine from My Image Gallery

2 thoughts on “KB: How to create a Windows 7/Windows 8 Azure VM

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