Recently, I worked with Microsoft Azure to provide better solutions using Visual Stuido 2015 and Team Foundation Server 2015 and Visual Studio Online, here…I will just share my experience about that through a new series which introduce different and random features for Microsoft Azure
- How to Upload a Virtual Machine to the Cloud for Microsoft Azure
How to Upload a Virtual Machine to the Cloud in Microsoft Azure
- Create a container inside the Storage
- Create a storage. I named my storage vmsmra
- Click on the storage <vmsmra> to see the containers inside
- Select which container you want to use to upload your virtual hard disk. (In this walk-through I choose uploadedvhds
- Open the machine that you will use to upload. In this case we use Azure Powershell.
Note: If you don’t have yet Azure Powershell, you can download it from Github or just use the direct link which I prefer.
- After installing, run Microsoft Azure PowerShell
Note: You can type help azure and this will display all the commands that will help you in doing your work
- First thing you need to do is to connect to your Azure account. You can do this by typing Add-AzureAccount then press Enter
- Login page for Microsoft Azure will pop-up. Enter your email address and click Continue.
- Then it will ask you to sign into your Microsoft Account. Enter your email and password then click Sign in
- After connecting your Azure subscription, it should look something like this:
- Then you need to add the vhd by typing
Add-AzureVhd –Destination <destination path> -LocalFilePath <local file path>
Then press Enter
- You will then see that it is starting to calculate MD5 Hash. This step may take a while to complete before you can see the result.
- After creating MD5 hash, it will start detecting empty blocks and this usually last for 10 minutes
- After successfully uploading the vhd, it will look something like this:
As you can see, it took me 1 hour and 27 minutes to upload my vhd (80 GB)
- Now go to Storage > vmsmra
Under vmsmra, click uploadedvhds to view your uploaded vhd
Clicking uploadedvhds will show you the vhds you uploaded. It will also show the size of your VHD
- Now we are ready to create our disk. First you need to click Virtual Machines, then click Disks
- After clicking Disks, it will display all the names of the disk and its details. To create a new disk, you need to click +Create found below
A pop-up window will be displayed
- Fill up the box by typing the Name, VHD URL (location of your uploaded vhd) and the operating system family. Then click Open
After that, you will see that it is starting to create the disk
After few minutes, it will now show that the disk has been successfully created
- We are now ready to create our virtual machine. To do this, under Virtual Machines, click Instances then click New found at the bottom.
It will show a window where you can create your virtual machine.
After that, this window will open. Name your virtual machine, leave the Tier to Standard then select the memory size of your virtual machine.
After that, details of your virtual machine configuration will be displayed
- It will now show that you successfully created a virtual machine and need to wait as it is starting provisioning
You will know that it is completed once the status changed to “Running”
- To connect to the machine, go to Virtual Machines, then select your virtual machine and click Connect found at the bottom
It will then show that it is downloading the .rdp file. Click OK
- Open your .rdp file on your local machine, then click Connect
- Enter your credentials, the establish the remote desktop connection
And you can now access the machine of Brian Keller that you uploaded in Windows Azure