Last month, my article about cloning and creating a bubble environment in Microsoft Azure using a PowerShell script was published here at TechGenix. You can check it out here.
However, I have received a request to clone a single VM instead of an entire resource group containing several VMs. I'm a big supporter of reusing code to accomplish new goals.
I've slightly changed the original code that is published in the original article. The difference is that now we have a new parameter called SingleVMInstead (by default it is False). If you want to clone a single VM, then switch that to True and provide the VMName in the SingleVMInstead field below.
The new cloning Azure environments script with the updated code can be found here.
Featured image: Shutterstock / Pixabay