Copying an Azure VM into Azure DevTest Lab

My Situation & Objective:
I have an Azure Virtual Machine used for development purposes and I want to move/copy into a my existing Azure DevTest Lab.

To take advantage of the great features and pricing discounts that DevTest Lab has to offer.

High Level Process:

  1. Identify and locate the .VHD file of the VM
  2. Copy .VHD file to DevTest Lab storage blob container, using Azure Storage Explorer
  3. Create a custom image
  4. Create VM from custom image
  5. Login via RDP connection

Step by Step Procedure:

  1. Identify the VMs .vhd file in the storage account blob container
  2. In an existing DevTest lab’s storage account’s blob container, create a folder called uploads
  3. There are three ways to copy/upload the vhd file.
    Upload using the AzCopy command-line utility
    Upload using the Microsoft Azure Storage Explorer
    Upload using the PowerShell console
  4. My preference is to use Microsoft Azure Storage Explorer
    Simply copy the source .VHD file
    Paste into the DevTest lab’s storage account’s blob container uploads folder.
    I chose to rename the .vhd file to something more user friendly.
  5. Go to your existing DevTest Lab
  6. Click Configuration and policies
  7. Select Custom Images
  8. Click Add
  9. Go to All virtual machines
    Click Add
    Choose a base by finding the newly created custom image
  10. Add VM specific configuration to create the VM from the custom image
    In Advanced Settings, choose additional configuration
    Select Public for IP address configuration for convenient and direct access from the internet. Although not the most secured approach of course.
  11. Virtual Machine has been created
  12. Click into the VM and click Connect to download the remote desktop connection .rdp file.
  13. RDP Login
    Use the original username and password when you last logged into the server.


One thought on “Copying an Azure VM into Azure DevTest Lab

  1. Pingback: My Favourite Azure DevTest Lab Features for the Developer Team Lead – Roy Kim on Azure, SharePoint, BI, Office 365

Leave a Reply

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

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

Facebook photo

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

Connecting to %s