I want to have multiple VM's for my webtier and a load balancer configured in Azure. Currently I have 1 VM and load balancer working, I can easily create a 2nd VM and get it to work with the load balancer, but then I'd have to fully re-configure the 2nd VM even though it is identical to the first VM.
How can I easily copy/replicate my main VM and create a 2nd or 3rd VM that is identical so I can provide a multi-VM setup? It's not just about the VM technical configuration, but mostly about the software installed and IIS config for instance.
I'm using Azure's new Resource Manager.
Cloning an Azure VM is done by using normal operations for preparing a machine for imaging.
Windows machines will need to be sysprepped and then captured.
There are ways to do this either through the GUI or through Powershell / CLI.
But whatever method you choose, you will need access to the VM in question.
Linux machines will need to be prepared by the azure linux agent, waagent.
The linux agent will deprovision your machine, and prepare it for capturing.
sudo waagent -deprovision+user
You can then deallocate the resources, and generalize + capture the machine.
From the azure documentation for capturing Linux VM's: