library
turbot/azure
Get Involved
Version
Pipeline: 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
Name | Type | Required | Description | Default |
---|---|---|---|---|
conn | connection.azure | Yes | Name of Azure connection to use. If not provided, the default Azure connection will be used. | connection.azure.default |
subscription_id | string | Yes | Azure Subscription Id. Examples: d46d7416-f95f-4771-bbb5-529d4c766. | - |
resource_group | string | Yes | Azure Resource Group. Examples: my-rg, my-rg-123. | - |
vm_name | string | Yes | Name of the virtual machine. | - |
vm_image | string | Yes | The 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_username | string | No | Username for the VM. Default value is current username of OS. | - |
admin_password | string | No | Password for the VM if authentication type is 'Password'. | - |
location | string | No | Location in which to create VM and related resources. Default to the resource group's location. | - |
vm_size | string | No | The VM size to be created. | - |
authentication_type | string | No | Type of authentication to use with the VM. | - |
network_security_group_name | string | No | The name to use when creating a new Network Security Group (default) or referencing an existing one. | - |
generate_ssh_keys | bool | No | Generate SSH public and private key files if missing. | - |
no_wait | bool | No | Do not wait for the long-running operation to finish. | - |
Outputs
Name | Description |
---|---|
virtual_machine | The created compute virtual machine details. |
Tags
recommended = true