library
turbot/azure
OverviewPipelines
0
Triggers
0
Variables
GitHub

Create Virtual Machine

Create an Azure Virtual Machine.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run azure.pipeline.create_compute_virtual_machine \
--arg 'resource_group=<string>' \
--arg 'vm_image=<string>' \
--arg 'vm_name=<string>' \
--arg 'subscription_id=<string>'

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = azure.pipeline.create_compute_virtual_machine
args = {
resource_group = <string>
vm_image = <string>
vm_name = <string>
subscription_id = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
credstringYesName for credentials to use. If not provided, the default credentials will be used.default
resource_groupstringYesAzure Resource Group. Examples: my-rg, my-rg-123.-
locationstringNoLocation in which to create VM and related resources. Default to the resource group's location.-
generate_ssh_keysboolNoGenerate SSH public and private key files if missing.-
vm_imagestringYesThe name of the operating system image as a URN alias, URN, custom image name or ID, custom image version ID, or VHD blob URI.-
vm_sizestringNoThe VM size to be created.-
network_security_group_namestringNoThe name to use when creating a new Network Security Group (default) or referencing an existing one.-
vm_namestringYesName of the virtual machine.-
admin_usernamestringNoUsername for the VM. Default value is current username of OS.-
authentication_typestringNoType of authentication to use with the VM.-
subscription_idstringYesAzure Subscription Id. Examples: d46d7416-f95f-4771-bbb5-529d4c766.-
admin_passwordstringNoPassword for the VM if authentication type is 'Password'.-
no_waitboolNoDo not wait for the long-running operation to finish.-

Outputs

NameDescription
virtual_machineThe created compute virtual machine details.