Update: Cloning Azure environments using Azure Automation

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.

Cloning Azure Environments

The new cloning Azure environments script with the updated code can be found here.

Featured image: Shutterstock / Pixabay

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top