Using CLI to Capture and Deploy VMs
Capturing and deploying Virtual Machines is a routine job when we work with IaaS Dev and Test environments on Azure. If you’ve worked with the Azure PowerShell CmdLets in the past, this will feel quite familiar.
Let’s dive in!
Before we start, it’s important to have the Azure CLI installed on our machine.
There are few ways to install the Azure CLI.
- Using an installer
- Installing Node.js and npm and then using the npm install command
- Run Azure CLI as a Docker container
Once the Azure CLI has been installed, we are able to use the azure command from a command-line interface (Bash, Terminal, Command prompt) to access the Azure CLI commands.