Quick Actions
az vm create
Description
Create an Azure Virtual Machine.
Command
az vm create
Examples
Create a default Ubuntu VM
az vm create -n MyVm -g MyResourceGroup --image UbuntuLTS --generate-ssh-keys
Create a Windows Server 2019 VM
az vm create -n MyWinVm -g MyResourceGroup --image Win2019Datacenter --admin-username myadmin --admin-password 'MyComplexPassword123!'
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-n, --name <name> |
string | No | Name of the virtual machine. |
-g, --resource-group <name> |
string | No | Name of resource group. |
--image <URN> |
string | No | The name of the image to create the VM from (e.g., UbuntuLTS, Win2019Datacenter). |
--admin-username <username> |
string | No | User name for the virtual machine. |
Command Info
Category:
Virtual Machine
Type:
Azure
Views:
13
Status:
Active
Tags
azure
vm
compute
create