Forrest logo
back to the az tool

az-vm:tldr:dc81d

az-vm: Start a Virtual Machine.
$ az vm start --resource-group ${rg} --name ${vm_name}
try on your machine

This is a command for the Azure CLI (Command-Line Interface) tool that starts a virtual machine in Azure. Here is the breakdown of the command:

  • az: It is the command to execute Azure CLI commands.
  • vm: It specifies that the command operates on a virtual machine.
  • start: It is the action to start the virtual machine.
  • --resource-group ${rg}: It specifies the resource group of the virtual machine. ${rg} is a placeholder that represents the actual name of the resource group. You need to replace ${rg} with the name of the resource group where the virtual machine is located.
  • --name ${vm_name}: It specifies the name of the virtual machine to start. ${vm_name} is a placeholder that represents the actual name of the virtual machine. You need to replace ${vm_name} with the name of the virtual machine you want to start.

By running this command with the appropriate values for ${rg} and ${vm_name}, the specified virtual machine in the given resource group will be started.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool