Create virtual machines (VM) – Azure CLI | Microsoft Docs

In this tutorial, you learn all of the steps involved in creating a virtual machine with the Azure CLI. The tutorial also covers output queries, Azure resource reuse, and resource cleanup.

This tutorial can be completed with the interactive experienced offered through Azure Cloud Shell, or you may install the CLI locally.

Use ctrl-shift-v (cmd-shift-v on macOS) to paste tutorial text into Azure Cloud Shell.