Class VirtualMachineArgs
Inherited Members
Namespace: Pulumi.Azure.Compute
Assembly: Pulumi.Azure.dll
Syntax
public sealed class VirtualMachineArgs : ResourceArgs
Constructors
View SourceVirtualMachineArgs()
Declaration
public VirtualMachineArgs()
Properties
View SourceAdditionalCapabilities
A additional_capabilities block.
Declaration
public Input<VirtualMachineAdditionalCapabilitiesArgs> AdditionalCapabilities { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineAdditionalCapabilitiesArgs> |
AvailabilitySetId
The ID of the Availability Set in which the Virtual Machine should exist. Changing this forces a new resource to be created.
Declaration
public Input<string> AvailabilitySetId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
BootDiagnostics
A boot_diagnostics block.
Declaration
public Input<VirtualMachineBootDiagnosticsArgs> BootDiagnostics { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineBootDiagnosticsArgs> |
DeleteDataDisksOnTermination
Should the Data Disks (either the Managed Disks / VHD Blobs) be deleted when the Virtual Machine is destroyed? Defaults to false.
Declaration
public Input<bool> DeleteDataDisksOnTermination { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
DeleteOsDiskOnTermination
Should the OS Disk (either the Managed Disk / VHD Blob) be deleted when the Virtual Machine is destroyed? Defaults to false.
Declaration
public Input<bool> DeleteOsDiskOnTermination { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Identity
A identity block.
Declaration
public Input<VirtualMachineIdentityArgs> Identity { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineIdentityArgs> |
LicenseType
Specifies the BYOL Type for this Virtual Machine. This is only applicable to Windows Virtual Machines. Possible values are Windows_Client and Windows_Server.
Declaration
public Input<string> LicenseType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Location
Specifies the Azure Region where the Virtual Machine exists. Changing this forces a new resource to be created.
Declaration
public Input<string> Location { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
Specifies the name of the Virtual Machine. Changing this forces a new resource to be created.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NetworkInterfaceIds
A list of Network Interface ID's which should be associated with the Virtual Machine.
Declaration
public InputList<string> NetworkInterfaceIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
OsProfile
An os_profile block. Required when create_option in the storage_os_disk block is set to FromImage.
Declaration
public Input<VirtualMachineOsProfileArgs> OsProfile { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineOsProfileArgs> |
OsProfileLinuxConfig
A os_profile_linux_config block.
Declaration
public Input<VirtualMachineOsProfileLinuxConfigArgs> OsProfileLinuxConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineOsProfileLinuxConfigArgs> |
OsProfileSecrets
One or more os_profile_secrets blocks.
Declaration
public InputList<VirtualMachineOsProfileSecretArgs> OsProfileSecrets { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<VirtualMachineOsProfileSecretArgs> |
OsProfileWindowsConfig
A os_profile_windows_config block.
Declaration
public Input<VirtualMachineOsProfileWindowsConfigArgs> OsProfileWindowsConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineOsProfileWindowsConfigArgs> |
Plan
A plan block.
Declaration
public Input<VirtualMachinePlanArgs> Plan { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachinePlanArgs> |
PrimaryNetworkInterfaceId
The ID of the Network Interface (which must be attached to the Virtual Machine) which should be the Primary Network Interface for this Virtual Machine.
Declaration
public Input<string> PrimaryNetworkInterfaceId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ProximityPlacementGroupId
The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created
Declaration
public Input<string> ProximityPlacementGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ResourceGroupName
Specifies the name of the Resource Group in which the Virtual Machine should exist. Changing this forces a new resource to be created.
Declaration
public Input<string> ResourceGroupName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
StorageDataDisks
One or more storage_data_disk blocks.
Declaration
public InputList<VirtualMachineStorageDataDiskArgs> StorageDataDisks { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<VirtualMachineStorageDataDiskArgs> |
StorageImageReference
A storage_image_reference block.
Declaration
public Input<VirtualMachineStorageImageReferenceArgs> StorageImageReference { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineStorageImageReferenceArgs> |
StorageOsDisk
A storage_os_disk block.
Declaration
public Input<VirtualMachineStorageOsDiskArgs> StorageOsDisk { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<VirtualMachineStorageOsDiskArgs> |
Tags
A mapping of tags to assign to the Virtual Machine.
Declaration
public InputMap<string> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.String> |
VmSize
Specifies the size of the Virtual Machine.
Declaration
public Input<string> VmSize { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Zones
A list of a single item of the Availability Zone which the Virtual Machine should be allocated in.
Declaration
public Input<string> Zones { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |