azurerm_linux_virtual_machineNivis Nix constructor for the azurerm_linux_virtual_machine resource (provider azurerm). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
location,
network_interface_ids,
resource_group_name,
size,
admin_password ? null,
admin_username ? null,
allow_extension_operations ? null,
availability_set_id ? null,
bypass_platform_safety_checks_on_user_schedule_enabled ? null,
capacity_reservation_group_id ? null,
computer_name ? null,
custom_data ? null,
dedicated_host_group_id ? null,
dedicated_host_id ? null,
disable_password_authentication ? null,
disk_controller_type ? null,
edge_zone ? null,
encryption_at_host_enabled ? null,
eviction_policy ? null,
extensions_time_budget ? null,
id ? null,
license_type ? null,
max_bid_price ? null,
cfg_name ? null,
os_managed_disk_id ? null,
patch_assessment_mode ? null,
patch_mode ? null,
platform_fault_domain ? null,
priority ? null,
provision_vm_agent ? null,
proximity_placement_group_id ? null,
reboot_setting ? null,
secure_boot_enabled ? null,
source_image_id ? null,
tags ? null,
user_data ? null,
virtual_machine_scale_set_id ? null,
vtpm_enabled ? null,
zone ? null,
additional_capabilities ? null,
admin_ssh_key ? null,
boot_diagnostics ? null,
gallery_application ? null,
identity ? null,
os_disk ? null,
os_image_notification ? null,
plan ? null,
secret ? null,
source_image_reference ? null,
termination_notification ? null,
timeouts ? null,
overrides ? {}
}Required arguments
locationnetwork_interface_idsresource_group_namesize
Optional arguments
admin_password(defaults tonull)admin_username(defaults tonull)allow_extension_operations(defaults tonull)availability_set_id(defaults tonull)bypass_platform_safety_checks_on_user_schedule_enabled(defaults tonull)capacity_reservation_group_id(defaults tonull)computer_name(defaults tonull)custom_data(defaults tonull)dedicated_host_group_id(defaults tonull)dedicated_host_id(defaults tonull)disable_password_authentication(defaults tonull)disk_controller_type(defaults tonull)edge_zone(defaults tonull)encryption_at_host_enabled(defaults tonull)eviction_policy(defaults tonull)extensions_time_budget(defaults tonull)id(defaults tonull)license_type(defaults tonull)max_bid_price(defaults tonull)cfg_name(defaults tonull)os_managed_disk_id(defaults tonull)patch_assessment_mode(defaults tonull)patch_mode(defaults tonull)platform_fault_domain(defaults tonull)priority(defaults tonull)provision_vm_agent(defaults tonull)proximity_placement_group_id(defaults tonull)reboot_setting(defaults tonull)secure_boot_enabled(defaults tonull)source_image_id(defaults tonull)tags(defaults tonull)user_data(defaults tonull)virtual_machine_scale_set_id(defaults tonull)vtpm_enabled(defaults tonull)zone(defaults tonull)additional_capabilities(defaults tonull)admin_ssh_key(defaults tonull)boot_diagnostics(defaults tonull)gallery_application(defaults tonull)identity(defaults tonull)os_disk(defaults tonull)os_image_notification(defaults tonull)plan(defaults tonull)secret(defaults tonull)source_image_reference(defaults tonull)termination_notification(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
private_ip_addressprivate_ip_addressespublic_ip_addresspublic_ip_addressesvirtual_machine_idvm_agent_platform_updates_enabled
Example
azurerm_linux_virtual_machine {
name = "linux_virtual_machine";
location = …; # required
network_interface_ids = …; # required
resource_group_name = …; # required
size = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.