Poor Man’s Azure Templating: Take a Snapshot of Existing VMs and Replicate Deployment Elsewhere

There might be situations where you want to take snapshot of all of the VM definitions deployed on an Azure subscription, and later create the exact footprint on another environment (minus the data on the disks). Here is a way to do it.

First, take the snapshot:

Now, you can read the resulting file, loop over the read objects, and create a set of provisioning configuration objects for the VMs.