pub struct LinuxVirtualMachineResult {Show 54 fields
pub additional_capabilities: Output<Option<LinuxVirtualMachineAdditionalCapabilities>>,
pub admin_password: Output<Option<String>>,
pub admin_ssh_keys: Output<Option<Vec<LinuxVirtualMachineAdminSshKey>>>,
pub admin_username: Output<String>,
pub allow_extension_operations: Output<Option<bool>>,
pub availability_set_id: Output<Option<String>>,
pub boot_diagnostics: Output<Option<LinuxVirtualMachineBootDiagnostics>>,
pub bypass_platform_safety_checks_on_user_schedule_enabled: Output<Option<bool>>,
pub capacity_reservation_group_id: Output<Option<String>>,
pub computer_name: Output<String>,
pub custom_data: Output<Option<String>>,
pub dedicated_host_group_id: Output<Option<String>>,
pub dedicated_host_id: Output<Option<String>>,
pub disable_password_authentication: Output<Option<bool>>,
pub disk_controller_type: Output<String>,
pub edge_zone: Output<Option<String>>,
pub encryption_at_host_enabled: Output<Option<bool>>,
pub eviction_policy: Output<Option<String>>,
pub extensions_time_budget: Output<Option<String>>,
pub gallery_applications: Output<Option<Vec<LinuxVirtualMachineGalleryApplication>>>,
pub identity: Output<Option<LinuxVirtualMachineIdentity>>,
pub license_type: Output<Option<String>>,
pub location: Output<String>,
pub max_bid_price: Output<Option<f64>>,
pub name: Output<String>,
pub network_interface_ids: Output<Vec<String>>,
pub os_disk: Output<LinuxVirtualMachineOsDisk>,
pub os_image_notification: Output<Option<LinuxVirtualMachineOsImageNotification>>,
pub patch_assessment_mode: Output<Option<String>>,
pub patch_mode: Output<Option<String>>,
pub plan: Output<Option<LinuxVirtualMachinePlan>>,
pub platform_fault_domain: Output<Option<i32>>,
pub priority: Output<Option<String>>,
pub private_ip_address: Output<String>,
pub private_ip_addresses: Output<Vec<String>>,
pub provision_vm_agent: Output<Option<bool>>,
pub proximity_placement_group_id: Output<Option<String>>,
pub public_ip_address: Output<String>,
pub public_ip_addresses: Output<Vec<String>>,
pub reboot_setting: Output<Option<String>>,
pub resource_group_name: Output<String>,
pub secrets: Output<Option<Vec<LinuxVirtualMachineSecret>>>,
pub secure_boot_enabled: Output<Option<bool>>,
pub size: Output<String>,
pub source_image_id: Output<Option<String>>,
pub source_image_reference: Output<Option<LinuxVirtualMachineSourceImageReference>>,
pub tags: Output<Option<HashMap<String, String>>>,
pub termination_notification: Output<LinuxVirtualMachineTerminationNotification>,
pub user_data: Output<Option<String>>,
pub virtual_machine_id: Output<String>,
pub virtual_machine_scale_set_id: Output<Option<String>>,
pub vm_agent_platform_updates_enabled: Output<Option<bool>>,
pub vtpm_enabled: Output<Option<bool>>,
pub zone: Output<Option<String>>,
}
Fields§
§additional_capabilities: Output<Option<LinuxVirtualMachineAdditionalCapabilities>>
A additional_capabilities
block as defined below.
admin_password: Output<Option<String>>
The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
NOTE: When an
admin_password
is specifieddisable_password_authentication
must be set tofalse
. NOTE: One of eitheradmin_password
oradmin_ssh_key
must be specified.
admin_ssh_keys: Output<Option<Vec<LinuxVirtualMachineAdminSshKey>>>
One or more admin_ssh_key
blocks as defined below. Changing this forces a new resource to be created.
NOTE: One of either
admin_password
oradmin_ssh_key
must be specified.
admin_username: Output<String>
The username of the local administrator used for the Virtual Machine. Changing this forces a new resource to be created.
allow_extension_operations: Output<Option<bool>>
Should Extension Operations be allowed on this Virtual Machine? Defaults to true
.
availability_set_id: Output<Option<String>>
Specifies 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<LinuxVirtualMachineBootDiagnostics>>
A boot_diagnostics
block as defined below.
bypass_platform_safety_checks_on_user_schedule_enabled: Output<Option<bool>>
Specifies whether to skip platform scheduled patching when a user schedule is associated with the VM. Defaults to false
.
NOTE:
bypass_platform_safety_checks_on_user_schedule_enabled
can only be set totrue
whenpatch_mode
is set toAutomaticByPlatform
.
capacity_reservation_group_id: Output<Option<String>>
Specifies the ID of the Capacity Reservation Group which the Virtual Machine should be allocated to.
NOTE:
capacity_reservation_group_id
cannot be used withavailability_set_id
orproximity_placement_group_id
computer_name: Output<String>
Specifies the Hostname which should be used for this Virtual Machine. If unspecified this defaults to the value for the name
field. If the value of the name
field is not a valid computer_name
, then you must specify computer_name
. Changing this forces a new resource to be created.
custom_data: Output<Option<String>>
The Base64-Encoded Custom Data which should be used for this Virtual Machine. Changing this forces a new resource to be created.
dedicated_host_group_id: Output<Option<String>>
The ID of a Dedicated Host Group that this Linux Virtual Machine should be run within. Conflicts with dedicated_host_id
.
dedicated_host_id: Output<Option<String>>
The ID of a Dedicated Host where this machine should be run on. Conflicts with dedicated_host_group_id
.
disable_password_authentication: Output<Option<bool>>
Should Password Authentication be disabled on this Virtual Machine? Defaults to true
. Changing this forces a new resource to be created.
In general we’d recommend using SSH Keys for authentication rather than Passwords - but there’s tradeoff’s to each - please see this thread for more information.
NOTE: When an
admin_password
is specifieddisable_password_authentication
must be set tofalse
.
disk_controller_type: Output<String>
Specifies the Disk Controller Type used for this Virtual Machine. Possible values are SCSI
and NVMe
.
edge_zone: Output<Option<String>>
Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine should exist. Changing this forces a new Linux Virtual Machine to be created.
encryption_at_host_enabled: Output<Option<bool>>
Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
eviction_policy: Output<Option<String>>
Specifies what should happen when the Virtual Machine is evicted for price reasons when using a Spot instance. Possible values are Deallocate
and Delete
. Changing this forces a new resource to be created.
NOTE: This can only be configured when
priority
is set toSpot
.
extensions_time_budget: Output<Option<String>>
Specifies the duration allocated for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. Defaults to PT1H30M
.
gallery_applications: Output<Option<Vec<LinuxVirtualMachineGalleryApplication>>>
One or more gallery_application
blocks as defined below.
Note Gallery Application Assignments can be defined either directly on
azure.compute.LinuxVirtualMachine
resource, or using theazure.compute.GalleryApplicationAssignment
resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. Ifazure.compute.GalleryApplicationAssignment
is used, it’s recommended to useignore_changes
for thegallery_application
block on the correspondingazure.compute.LinuxVirtualMachine
resource, to avoid a persistent diff when using this resource.
identity: Output<Option<LinuxVirtualMachineIdentity>>
An identity
block as defined below.
license_type: Output<Option<String>>
Specifies the License Type for this Virtual Machine. Possible values are RHEL_BYOS
, RHEL_BASE
, RHEL_EUS
, RHEL_SAPAPPS
, RHEL_SAPHA
, RHEL_BASESAPAPPS
, RHEL_BASESAPHA
, SLES_BYOS
, SLES_SAP
, SLES_HPC
, UBUNTU_PRO
.
location: Output<String>
The Azure location where the Linux Virtual Machine should exist. Changing this forces a new resource to be created.
max_bid_price: Output<Option<f64>>
The maximum price you’re willing to pay for this Virtual Machine, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machine will be evicted using the eviction_policy
. Defaults to -1
, which means that the Virtual Machine should not be evicted for price reasons.
NOTE: This can only be configured when
priority
is set toSpot
.
name: Output<String>
The name of the Linux 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 attached to this Virtual Machine. The first Network Interface ID in this list will be the Primary Network Interface on the Virtual Machine.
os_disk: Output<LinuxVirtualMachineOsDisk>
A os_disk
block as defined below.
os_image_notification: Output<Option<LinuxVirtualMachineOsImageNotification>>
A os_image_notification
block as defined below.
patch_assessment_mode: Output<Option<String>>
Specifies the mode of VM Guest Patching for the Virtual Machine. Possible values are AutomaticByPlatform
or ImageDefault
. Defaults to ImageDefault
.
NOTE: If the
patch_assessment_mode
is set toAutomaticByPlatform
then theprovision_vm_agent
field must be set totrue
.
patch_mode: Output<Option<String>>
Specifies the mode of in-guest patching to this Linux Virtual Machine. Possible values are AutomaticByPlatform
and ImageDefault
. Defaults to ImageDefault
. For more information on patch modes please see the product documentation.
NOTE: If
patch_mode
is set toAutomaticByPlatform
thenprovision_vm_agent
must also be set totrue
.
plan: Output<Option<LinuxVirtualMachinePlan>>
A plan
block as defined below. Changing this forces a new resource to be created.
platform_fault_domain: Output<Option<i32>>
Specifies the Platform Fault Domain in which this Linux Virtual Machine should be created. Defaults to -1
, which means this will be automatically assigned to a fault domain that best maintains balance across the available fault domains. Changing this forces a new Linux Virtual Machine to be created.
priority: Output<Option<String>>
Specifies the priority of this Virtual Machine. Possible values are Regular
and Spot
. Defaults to Regular
. Changing this forces a new resource to be created.
private_ip_address: Output<String>
The Primary Private IP Address assigned to this Virtual Machine.
private_ip_addresses: Output<Vec<String>>
A list of Private IP Addresses assigned to this Virtual Machine.
provision_vm_agent: Output<Option<bool>>
Should the Azure VM Agent be provisioned on this Virtual Machine? Defaults to true
. Changing this forces a new resource to be created.
NOTE: If
provision_vm_agent
is set tofalse
thenallow_extension_operations
must also be set tofalse
.
proximity_placement_group_id: Output<Option<String>>
The ID of the Proximity Placement Group which the Virtual Machine should be assigned to.
public_ip_address: Output<String>
The Primary Public IP Address assigned to this Virtual Machine.
public_ip_addresses: Output<Vec<String>>
A list of the Public IP Addresses assigned to this Virtual Machine.
reboot_setting: Output<Option<String>>
Specifies the reboot setting for platform scheduled patching. Possible values are Always
, IfRequired
and Never
.
NOTE:
reboot_setting
can only be set whenpatch_mode
is set toAutomaticByPlatform
.
resource_group_name: Output<String>
The name of the Resource Group in which the Linux Virtual Machine should be exist. Changing this forces a new resource to be created.
secrets: Output<Option<Vec<LinuxVirtualMachineSecret>>>
One or more secret
blocks as defined below.
secure_boot_enabled: Output<Option<bool>>
Specifies whether secure boot should be enabled on the virtual machine. Changing this forces a new resource to be created.
size: Output<String>
The SKU which should be used for this Virtual Machine, such as Standard_F2
.
source_image_id: Output<Option<String>>
The ID of the Image which this Virtual Machine should be created from. Changing this forces a new resource to be created. Possible Image ID types include Image ID
s, Shared Image ID
s, Shared Image Version ID
s, Community Gallery Image ID
s, Community Gallery Image Version ID
s, Shared Gallery Image ID
s and Shared Gallery Image Version ID
s.
NOTE: One of either
source_image_id
orsource_image_reference
must be set.
source_image_reference: Output<Option<LinuxVirtualMachineSourceImageReference>>
A source_image_reference
block as defined below. Changing this forces a new resource to be created.
NOTE: One of either
source_image_id
orsource_image_reference
must be set.
A mapping of tags which should be assigned to this Virtual Machine.
termination_notification: Output<LinuxVirtualMachineTerminationNotification>
A termination_notification
block as defined below.
user_data: Output<Option<String>>
The Base64-Encoded User Data which should be used for this Virtual Machine.
virtual_machine_id: Output<String>
A 128-bit identifier which uniquely identifies this Virtual Machine.
virtual_machine_scale_set_id: Output<Option<String>>
Specifies the Orchestrated Virtual Machine Scale Set that this Virtual Machine should be created within.
NOTE: To update
virtual_machine_scale_set_id
the Preview FeatureMicrosoft.Compute/SingleFDAttachDetachVMToVmss
needs to be enabled, see the documentation for more information.
NOTE: Orchestrated Virtual Machine Scale Sets can be provisioned using the
azure.compute.OrchestratedVirtualMachineScaleSet
resource.
NOTE: To attach an existing VM to a Virtual Machine Scale Set, the scale set must have
single_placement_group
set tofalse
, see the documentation for more information.
vm_agent_platform_updates_enabled: Output<Option<bool>>
Specifies whether VMAgent Platform Updates is enabled. Defaults to false
.
vtpm_enabled: Output<Option<bool>>
Specifies whether vTPM should be enabled on the virtual machine. Changing this forces a new resource to be created.
zone: Output<Option<String>>
Specifies the Availability Zones in which this Linux Virtual Machine should be located. Changing this forces a new Linux Virtual Machine to be created.