LinuxVirtualMachine
Manages a Linux Virtual Machine within a Dev Test Lab.
Create a LinuxVirtualMachine Resource
new LinuxVirtualMachine(name: string, args: LinuxVirtualMachineArgs, opts?: CustomResourceOptions);def LinuxVirtualMachine(resource_name, opts=None, allow_claim=None, disallow_public_ip_address=None, gallery_image_reference=None, inbound_nat_rules=None, lab_name=None, lab_subnet_name=None, lab_virtual_network_id=None, location=None, name=None, notes=None, password=None, resource_group_name=None, size=None, ssh_key=None, storage_type=None, tags=None, username=None, __props__=None);func NewLinuxVirtualMachine(ctx *Context, name string, args LinuxVirtualMachineArgs, opts ...ResourceOption) (*LinuxVirtualMachine, error)public LinuxVirtualMachine(string name, LinuxVirtualMachineArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args LinuxVirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LinuxVirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LinuxVirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
LinuxVirtualMachine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The LinuxVirtualMachine resource accepts the following input properties:
- Gallery
Image LinuxReference Virtual Machine Gallery Image Reference Args A
gallery_image_referenceblock as defined below.- Lab
Name string Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- Lab
Subnet stringName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- Lab
Virtual stringNetwork Id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Size string
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- Storage
Type string The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- Username string
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
- Allow
Claim bool Can this Virtual Machine be claimed by users? Defaults to
true.- Disallow
Public boolIp Address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- Inbound
Nat List<LinuxRules Virtual Machine Inbound Nat Rule Args> One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- Notes string
Any notes about the Virtual Machine.
- Password string
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Ssh
Key string The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Gallery
Image LinuxReference Virtual Machine Gallery Image Reference A
gallery_image_referenceblock as defined below.- Lab
Name string Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- Lab
Subnet stringName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- Lab
Virtual stringNetwork Id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Size string
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- Storage
Type string The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- Username string
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
- Allow
Claim bool Can this Virtual Machine be claimed by users? Defaults to
true.- Disallow
Public boolIp Address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- Inbound
Nat []LinuxRules Virtual Machine Inbound Nat Rule One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- Notes string
Any notes about the Virtual Machine.
- Password string
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Ssh
Key string The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- gallery
Image LinuxReference Virtual Machine Gallery Image Reference A
gallery_image_referenceblock as defined below.- lab
Name string Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- lab
Subnet stringName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- lab
Virtual stringNetwork Id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- size string
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- storage
Type string The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- username string
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
- allow
Claim boolean Can this Virtual Machine be claimed by users? Defaults to
true.- disallow
Public booleanIp Address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- inbound
Nat LinuxRules Virtual Machine Inbound Nat Rule[] One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- location string
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- notes string
Any notes about the Virtual Machine.
- password string
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- ssh
Key string The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- gallery_
image_ Dict[Linuxreference Virtual Machine Gallery Image Reference] A
gallery_image_referenceblock as defined below.- lab_
name str Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- lab_
subnet_ strname The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- lab_
virtual_ strnetwork_ id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- size str
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- storage_
type str The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- username str
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
- allow_
claim bool Can this Virtual Machine be claimed by users? Defaults to
true.- disallow_
public_ boolip_ address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- inbound_
nat_ List[Linuxrules Virtual Machine Inbound Nat Rule] One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- location str
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- notes str
Any notes about the Virtual Machine.
- password str
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- ssh_
key str The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LinuxVirtualMachine resource produces the following output properties:
Look up an Existing LinuxVirtualMachine Resource
Get an existing LinuxVirtualMachine resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LinuxVirtualMachineState, opts?: CustomResourceOptions): LinuxVirtualMachinestatic get(resource_name, id, opts=None, allow_claim=None, disallow_public_ip_address=None, fqdn=None, gallery_image_reference=None, inbound_nat_rules=None, lab_name=None, lab_subnet_name=None, lab_virtual_network_id=None, location=None, name=None, notes=None, password=None, resource_group_name=None, size=None, ssh_key=None, storage_type=None, tags=None, unique_identifier=None, username=None, __props__=None);func GetLinuxVirtualMachine(ctx *Context, name string, id IDInput, state *LinuxVirtualMachineState, opts ...ResourceOption) (*LinuxVirtualMachine, error)public static LinuxVirtualMachine Get(string name, Input<string> id, LinuxVirtualMachineState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Allow
Claim bool Can this Virtual Machine be claimed by users? Defaults to
true.- Disallow
Public boolIp Address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- Fqdn string
The FQDN of the Virtual Machine.
- Gallery
Image LinuxReference Virtual Machine Gallery Image Reference Args A
gallery_image_referenceblock as defined below.- Inbound
Nat List<LinuxRules Virtual Machine Inbound Nat Rule Args> One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- Lab
Name string Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- Lab
Subnet stringName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- Lab
Virtual stringNetwork Id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- Notes string
Any notes about the Virtual Machine.
- Password string
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Resource
Group stringName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Size string
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- Ssh
Key string The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Storage
Type string The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Unique
Identifier string The unique immutable identifier of the Virtual Machine.
- Username string
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
- Allow
Claim bool Can this Virtual Machine be claimed by users? Defaults to
true.- Disallow
Public boolIp Address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- Fqdn string
The FQDN of the Virtual Machine.
- Gallery
Image LinuxReference Virtual Machine Gallery Image Reference A
gallery_image_referenceblock as defined below.- Inbound
Nat []LinuxRules Virtual Machine Inbound Nat Rule One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- Lab
Name string Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- Lab
Subnet stringName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- Lab
Virtual stringNetwork Id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- Notes string
Any notes about the Virtual Machine.
- Password string
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Resource
Group stringName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Size string
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- Ssh
Key string The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- Storage
Type string The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- map[string]string
A mapping of tags to assign to the resource.
- Unique
Identifier string The unique immutable identifier of the Virtual Machine.
- Username string
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
- allow
Claim boolean Can this Virtual Machine be claimed by users? Defaults to
true.- disallow
Public booleanIp Address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- fqdn string
The FQDN of the Virtual Machine.
- gallery
Image LinuxReference Virtual Machine Gallery Image Reference A
gallery_image_referenceblock as defined below.- inbound
Nat LinuxRules Virtual Machine Inbound Nat Rule[] One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- lab
Name string Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- lab
Subnet stringName The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- lab
Virtual stringNetwork Id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- location string
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- notes string
Any notes about the Virtual Machine.
- password string
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- resource
Group stringName The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- size string
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- ssh
Key string The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- storage
Type string The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- {[key: string]: string}
A mapping of tags to assign to the resource.
- unique
Identifier string The unique immutable identifier of the Virtual Machine.
- username string
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
- allow_
claim bool Can this Virtual Machine be claimed by users? Defaults to
true.- disallow_
public_ boolip_ address Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
- fqdn str
The FQDN of the Virtual Machine.
- gallery_
image_ Dict[Linuxreference Virtual Machine Gallery Image Reference] A
gallery_image_referenceblock as defined below.- inbound_
nat_ List[Linuxrules Virtual Machine Inbound Nat Rule] One or more
inbound_nat_ruleblocks as defined below. Changing this forces a new resource to be created.- lab_
name str Specifies the name of the Dev Test Lab in which the Virtual Machine should be created. Changing this forces a new resource to be created.
- lab_
subnet_ strname The name of a Subnet within the Dev Test Virtual Network where this machine should exist. Changing this forces a new resource to be created.
- lab_
virtual_ strnetwork_ id The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
- location str
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
- notes str
Any notes about the Virtual Machine.
- password str
The Password associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- resource_
group_ strname The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- size str
The Machine Size to use for this Virtual Machine, such as
Standard_F2. Changing this forces a new resource to be created.- ssh_
key str The SSH Key associated with the
usernameused to login to this Virtual Machine. Changing this forces a new resource to be created.- storage_
type str The type of Storage to use on this Virtual Machine. Possible values are
StandardandPremium.- Dict[str, str]
A mapping of tags to assign to the resource.
- unique_
identifier str The unique immutable identifier of the Virtual Machine.
- username str
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
Supporting Types
LinuxVirtualMachineGalleryImageReference
- Offer string
The Offer of the Gallery Image. Changing this forces a new resource to be created.
- Publisher string
The Publisher of the Gallery Image. Changing this forces a new resource to be created.
- Sku string
The SKU of the Gallery Image. Changing this forces a new resource to be created.
- Version string
The Version of the Gallery Image. Changing this forces a new resource to be created.
- Offer string
The Offer of the Gallery Image. Changing this forces a new resource to be created.
- Publisher string
The Publisher of the Gallery Image. Changing this forces a new resource to be created.
- Sku string
The SKU of the Gallery Image. Changing this forces a new resource to be created.
- Version string
The Version of the Gallery Image. Changing this forces a new resource to be created.
- offer string
The Offer of the Gallery Image. Changing this forces a new resource to be created.
- publisher string
The Publisher of the Gallery Image. Changing this forces a new resource to be created.
- sku string
The SKU of the Gallery Image. Changing this forces a new resource to be created.
- version string
The Version of the Gallery Image. Changing this forces a new resource to be created.
- offer str
The Offer of the Gallery Image. Changing this forces a new resource to be created.
- publisher str
The Publisher of the Gallery Image. Changing this forces a new resource to be created.
- sku str
The SKU of the Gallery Image. Changing this forces a new resource to be created.
- version str
The Version of the Gallery Image. Changing this forces a new resource to be created.
LinuxVirtualMachineInboundNatRule
- Backend
Port int The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
- Protocol string
The Protocol used for this NAT Rule. Possible values are
TcpandUdp. Changing this forces a new resource to be created.- Frontend
Port int The frontend port associated with this Inbound NAT Rule.
- Backend
Port int The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
- Protocol string
The Protocol used for this NAT Rule. Possible values are
TcpandUdp. Changing this forces a new resource to be created.- Frontend
Port int The frontend port associated with this Inbound NAT Rule.
- backend
Port number The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
- protocol string
The Protocol used for this NAT Rule. Possible values are
TcpandUdp. Changing this forces a new resource to be created.- frontend
Port number The frontend port associated with this Inbound NAT Rule.
- backend_
port float The Backend Port associated with this NAT Rule. Changing this forces a new resource to be created.
- protocol str
The Protocol used for this NAT Rule. Possible values are
TcpandUdp. Changing this forces a new resource to be created.- frontend_
port float The frontend port associated with this Inbound NAT Rule.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.