Task Azure - Create VM
The Azure - Create VM Task creates a virtual machine in Azure, using a Microsoft Azure Connection.
The two Password boxes show the passwords as they are typed, and the Task stores them without encryption in its settings.
The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.
Azure - Create VM tab

- Connection: the Microsoft Azure Connection to use; see Connection - Microsoft Azure. Click the Settings icon to open Manage Connections. With "Resource manager", the Connection must use the "Application" authentication type. When the Connection does not suit the selected option, the Task window shows a warning and the Task stops with an error
Type
Select the deployment model to use for the new virtual machine. Available options:
- Classic - create the virtual machine using the classic deployment model
- Resource Manager - create the virtual machine using Azure Resource Manager
The labels of several fields below change to match the selected Type.
- VM name: the name to give the new virtual machine
Service name / Resource group
The Azure service name (when Type is set to Classic) or the resource group (when Type is set to Resource Manager) in which the virtual machine will be created.
Storage name / Availability set
The Azure storage account that will host the virtual machine's disks (when Type is set to Classic) or the availability set the virtual machine should join (when Type is set to Resource Manager). Click the Refresh icon to populate the drop-down list.
- Region: the Azure region to create the virtual machine in. Click Refresh to fill the list
- Role size: the size of the virtual machine. Click Refresh to list the sizes available in the selected Region
OS image
The operating system image to deploy. Click the Refresh icon to populate the drop-down (Classic) or to open the image search dialog (Resource Manager).
Deployment slot / Disk type
The deployment slot for the virtual machine (when Type is set to Classic) or the disk type (when Type is set to Resource Manager). Click the Refresh icon to populate the drop-down list.
- Admin name: the administrator user name for the new virtual machine
- Password (below Admin name): the administrator password
- User name: the standard user to create on the new virtual machine
- Password (below User name): the password of the standard user
- Host: the host name to give the new virtual machine
- Resized size in GB: the size of the virtual machine's disk, in gigabytes. It must be a whole number, or the Task fails
Output and errors
When Azure reports that the virtual machine was created, the output is "Succeeded". When the Connection is missing, or Azure returns an error, the Task fails.
When Azure reports another status, the status is written to standard error and the Task reports success. When Azure returns no status, the output is empty and the Task reports success.