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 'subscription_id=<string>' \
--arg 'resource_group=<string>' \
--arg 'vm_name=<string>' \
--arg 'vm_image=<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 = {
subscription_id = <string>
resource_group = <string>
vm_name = <string>
vm_image = <string>
}
}

Params

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

Outputs

NameDescription
virtual_machineThe created compute virtual machine details.

Tags

type = featured