pub struct VirtualMachineResult {Show 24 fields
pub additional_capabilities: Output<Option<VirtualMachineAdditionalCapabilities>>,
pub availability_set_id: Output<String>,
pub boot_diagnostics: Output<Option<VirtualMachineBootDiagnostics>>,
pub delete_data_disks_on_termination: Output<Option<bool>>,
pub delete_os_disk_on_termination: Output<Option<bool>>,
pub identity: Output<Option<VirtualMachineIdentity>>,
pub license_type: Output<String>,
pub location: Output<String>,
pub name: Output<String>,
pub network_interface_ids: Output<Vec<String>>,
pub os_profile: Output<Option<VirtualMachineOsProfile>>,
pub os_profile_linux_config: Output<Option<VirtualMachineOsProfileLinuxConfig>>,
pub os_profile_secrets: Output<Option<Vec<VirtualMachineOsProfileSecret>>>,
pub os_profile_windows_config: Output<Option<VirtualMachineOsProfileWindowsConfig>>,
pub plan: Output<Option<VirtualMachinePlan>>,
pub primary_network_interface_id: Output<Option<String>>,
pub proximity_placement_group_id: Output<Option<String>>,
pub resource_group_name: Output<String>,
pub storage_data_disks: Output<Vec<VirtualMachineStorageDataDisk>>,
pub storage_image_reference: Output<VirtualMachineStorageImageReference>,
pub storage_os_disk: Output<VirtualMachineStorageOsDisk>,
pub tags: Output<Option<HashMap<String, String>>>,
pub vm_size: Output<String>,
pub zones: Output<Option<String>>,
}
Fields§
§additional_capabilities: Output<Option<VirtualMachineAdditionalCapabilities>>
An additional_capabilities
block as defined below.
availability_set_id: Output<String>
The ID of the Availability Set in which the Virtual Machine should exist. Changing this forces a new resource to be created.
boot_diagnostics: Output<Option<VirtualMachineBootDiagnostics>>
A boot_diagnostics
block as defined below.
delete_data_disks_on_termination: Output<Option<bool>>
Should the Data Disks (either the Managed Disks / VHD Blobs) be deleted when the Virtual Machine is destroyed? Defaults to false
.
Note: This setting works when instance is deleted via the provider only and don’t forget to delete disks manually if you deleted VM manually. It can increase spending.
delete_os_disk_on_termination: Output<Option<bool>>
Should the OS Disk (either the Managed Disk / VHD Blob) be deleted when the Virtual Machine is destroyed? Defaults to false
.
Note: This setting works when instance is deleted via the provider only and don’t forget to delete disks manually if you deleted VM manually. It can increase spending.
identity: Output<Option<VirtualMachineIdentity>>
An identity
block as defined below.
license_type: Output<String>
Specifies the BYOL Type for this Virtual Machine. This is only applicable to Windows Virtual Machines. Possible values are Windows_Client
and Windows_Server
.
location: Output<String>
Specifies the Azure Region where the Virtual Machine exists. Changing this forces a new resource to be created.
name: Output<String>
Specifies the name of the Virtual Machine. Changing this forces a new resource to be created.
network_interface_ids: Output<Vec<String>>
A list of Network Interface IDs which should be associated with the Virtual Machine.
os_profile: Output<Option<VirtualMachineOsProfile>>
An os_profile
block as defined below. Required when create_option
in the storage_os_disk
block is set to FromImage
.
os_profile_linux_config: Output<Option<VirtualMachineOsProfileLinuxConfig>>
(Required, when a Linux machine) An os_profile_linux_config
block as defined below.
os_profile_secrets: Output<Option<Vec<VirtualMachineOsProfileSecret>>>
One or more os_profile_secrets
blocks as defined below.
os_profile_windows_config: Output<Option<VirtualMachineOsProfileWindowsConfig>>
(Required, when a Windows machine) An os_profile_windows_config
block as defined below.
plan: Output<Option<VirtualMachinePlan>>
A plan
block as defined below.
primary_network_interface_id: Output<Option<String>>
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.
proximity_placement_group_id: Output<Option<String>>
The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created
resource_group_name: Output<String>
Specifies the name of the Resource Group in which the Virtual Machine should exist. Changing this forces a new resource to be created.
storage_data_disks: Output<Vec<VirtualMachineStorageDataDisk>>
One or more storage_data_disk
blocks as defined below.
Please Note: Data Disks can also be attached either using this block or the
azure.compute.DataDiskAttachment
resource - but not both.
storage_image_reference: Output<VirtualMachineStorageImageReference>
A storage_image_reference
block as defined below. Changing this forces a new resource to be created.
storage_os_disk: Output<VirtualMachineStorageOsDisk>
A storage_os_disk
block as defined below.
A mapping of tags to assign to the Virtual Machine.
vm_size: Output<String>
Specifies the size of the Virtual Machine. See also Azure VM Naming Conventions.
zones: Output<Option<String>>
A list of a single item of the Availability Zone which the Virtual Machine should be allocated in. Changing this forces a new resource to be created.
Please Note: Availability Zones are only supported in several regions at this time.
For more information on the different example configurations, please check out the Azure documentation