Run the following command to create the image with the Azure command-line interface.

az image create --resource-group $GROUP --location $LOCATION --name $IMAGE \
--source $SOURCE --os-type linux --storage-sku Standard_LRS --os-disk-caching ReadOnly

See the table below for a description of each parameter.

Option

Value

GROUP

The name of the resource group created in Creating the Azure storage account.

IMAGE

The name of the VHD image previously uploaded in Creating the Azure storage account.

LOCATION

The location of the resource group created in Creating the Azure storage account.

SOURCE

The OS disk source.