In a previous post, we talked about how you can move a VM from your Hyper-V Server to Windows Azure using the IaaS service. In this article, we'll see how System Center allows to automate and delegate this rather painfull operation.
Before we start, you need the following in you environment :
These are the steps that we will follow to achieve the same result than in our previous post:
While you read this, keep in mind that those steps can be delegated to someone that has the appropriate permissions but do not need to have a full access to either environment. That person also does not need to have a password to access Azure, App Controller is checking the user's authorizations before allowing it to perform any action on the subscription.
App controller needs to be configured to talk to SCVMM, for that you have to create a Connection. Follow the steps bellow and enter the required information for the connection to VMM.
You also need to connect App Controller to Windows Azure:
Now, we can fill the wizard used to create the subscription :
In App Controller, you should now see your two environments with view similar to the following one.
We have now configured App Controller.
In the cloud jargon, the Library is what becomes your the reference in terms of virtual machine templates and other components that we may use when we deploy a VM (application, database schema etc …).
To start, we have our Virtual Machine (DemoVM) deployed on a priate cloud in our environement as you can see bellow :
In order to be able to "move" that VM to Windows Azure, first we must store the VM to the Library (click on the button "store").
You can verify that the process has completed correctly, the state near the VM is "Stored".
Under App Controller, go to the library. Expand you Azure subscription and if you haven't already done so do the following :
Now also expand the directory "StoredVms" (this is the default directory where the VMs are stored with Virtual Machine Manager 2012. A directory with the name of the VM appear. Under this directory, you have all the elements necessary to re-start the VM in the private cloud.
Select the VHD in the right pane of App Controller and select "Copy" and click "Paste" in the appropriate Azure container where you want to put your vhd.
Now we are simply creating a VM in Azure using this disk.
Select the VHD file that has just been uploaded in Azure and click "Deploy". This will automatically populate part of the deployment wizard. fill the missing information and you are good to deploy.
Once the deployment has completed, we have a running VM in Windows Azure as you can see bellow.
That's it !
Enjoy System Center App Controller !
If you want to read more about System Center App Controller,here are some nice articles and references :