Class LinuxVirtualMachine
Manages a Linux Virtual Machine within a Dev Test Lab.
Inherited Members
Namespace: Pulumi.Azure.DevTest
Assembly: Pulumi.Azure.dll
Syntax
public class LinuxVirtualMachine : CustomResource
Constructors
View SourceLinuxVirtualMachine(String, LinuxVirtualMachineArgs, CustomResourceOptions)
Create a LinuxVirtualMachine resource with the given unique name, arguments, and options.
Declaration
public LinuxVirtualMachine(string name, LinuxVirtualMachineArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| LinuxVirtualMachineArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllowClaim
Can this Virtual Machine be claimed by users? Defaults to true.
Declaration
public Output<bool?> AllowClaim { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
DisallowPublicIpAddress
Should the Virtual Machine be created without a Public IP Address? Changing this forces a new resource to be created.
Declaration
public Output<bool?> DisallowPublicIpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Fqdn
The FQDN of the Virtual Machine.
Declaration
public Output<string> Fqdn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GalleryImageReference
A gallery_image_reference block as defined below.
Declaration
public Output<LinuxVirtualMachineGalleryImageReference> GalleryImageReference { get; }
Property Value
| Type | Description |
|---|---|
| Output<LinuxVirtualMachineGalleryImageReference> |
InboundNatRules
One or more inbound_nat_rule blocks as defined below. Changing this forces a new resource to be created.
Declaration
public Output<ImmutableArray<LinuxVirtualMachineInboundNatRule>> InboundNatRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<LinuxVirtualMachineInboundNatRule>> |
LabName
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.
Declaration
public Output<string> LabName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LabSubnetName
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.
Declaration
public Output<string> LabSubnetName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LabVirtualNetworkId
The ID of the Dev Test Virtual Network where this Virtual Machine should be created. Changing this forces a new resource to be created.
Declaration
public Output<string> LabVirtualNetworkId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Location
Specifies the supported Azure location where the Dev Test Lab exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the Dev Test Machine. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Notes
Any notes about the Virtual Machine.
Declaration
public Output<string> Notes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Password
The Password associated with the username used to login to this Virtual Machine. Changing this forces a new resource to be created.
Declaration
public Output<string> Password { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Size
The Machine Size to use for this Virtual Machine, such as Standard_F2. Changing this forces a new resource to be created.
Declaration
public Output<string> Size { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SshKey
The SSH Key associated with the username used to login to this Virtual Machine. Changing this forces a new resource to be created.
Declaration
public Output<string> SshKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StorageType
The type of Storage to use on this Virtual Machine. Possible values are Standard and Premium.
Declaration
public Output<string> StorageType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
UniqueIdentifier
The unique immutable identifier of the Virtual Machine.
Declaration
public Output<string> UniqueIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Username
The Username associated with the local administrator on this Virtual Machine. Changing this forces a new resource to be created.
Declaration
public Output<string> Username { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, LinuxVirtualMachineState, CustomResourceOptions)
Get an existing LinuxVirtualMachine resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static LinuxVirtualMachine Get(string name, Input<string> id, LinuxVirtualMachineState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| LinuxVirtualMachineState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| LinuxVirtualMachine |