View blogs by industry experts on topics such as SSAS, SSIS, SSRS, Power BI, Performance Tuning, Azure, Big Data and much more! You can also sign up to post your own business intelligence blog.
I’m in the process of moving some my lab environments that I use for teaching SQL Server classes to Azure. I’m pretty new to the Azure infrastructure world but I thought I could share some of my lessons learned in doing this. My first post will walk you through moving an existing Hyper-V virtual machine image to be hosted in Azure.
Before you start this process here’s a couple things to be aware of:
Supposedly the Add-AzureVHD command will automatically convert .vhdx files to traditional .vhd files however when I attempted this it did not work, and produced the following error:
Add-AzureVHD : ‘C:\VM\Virtual Hard disks\MyVM.vhdx’ is not a valid VHD file.
No problem though. With a quick Windows PowerShell command I converted my .vhdx file to a .vhd file type.
PS C:\>Convert-VHD –Path “C:\VM\Virtual Hard Disks\MyVM.vhdx” –DestinationPath “C:\VM\Virtual Hard Disks\MyNewVM.vhd”
These first set of steps will walk you through uploading an existing Hyper-V VHD into Azure.
With this complete you can now create an Azure Virtual Machine from you .vhd you upload from your local machine.
Your VM will be provisioned and should be available immediately once these steps are complete. Keep in mind a lot of these steps that I did through the management portal could certainly be done using PowerShell as well.
Other posts by DevinKnight