diff --git a/modules/linux_virtual_machine/main.tf b/modules/linux_virtual_machine/main.tf index c7641f9..dadbb04 100644 --- a/modules/linux_virtual_machine/main.tf +++ b/modules/linux_virtual_machine/main.tf @@ -45,11 +45,11 @@ resource "random_password" "this" { } resource "azurerm_network_interface" "this" { - name = coalesce(var.custom_network_interface_name, "${module.naming.linux_virtual_machine.name}-nic") - location = var.location - resource_group_name = var.resource_group_name - enable_ip_forwarding = var.enable_ip_forwarding - enable_accelerated_networking = var.enable_accelerated_networking + name = coalesce(var.custom_network_interface_name, "${module.naming.linux_virtual_machine.name}-nic") + location = var.location + resource_group_name = var.resource_group_name + ip_forwarding_enabled = var.enable_ip_forwarding + accelerated_networking_enabled = var.enable_accelerated_networking ip_configuration { name = var.ip_configuration_name subnet_id = var.subnet_id diff --git a/modules/network_interface/main.tf b/modules/network_interface/main.tf index c13c9d1..f7fed54 100644 --- a/modules/network_interface/main.tf +++ b/modules/network_interface/main.tf @@ -32,11 +32,11 @@ module "naming" { } resource "azurerm_network_interface" "this" { - name = coalesce(var.custom_name, module.naming.network_interface.name) - location = var.location - resource_group_name = var.resource_group_name - enable_ip_forwarding = var.enable_ip_forwarding - enable_accelerated_networking = var.enable_accelerated_networking + name = coalesce(var.custom_name, module.naming.network_interface.name) + location = var.location + resource_group_name = var.resource_group_name + ip_forwarding_enabled = var.enable_ip_forwarding + accelerated_networking_enabled = var.enable_accelerated_networking ip_configuration { name = var.ip_configuration_name subnet_id = var.subnet_id diff --git a/modules/windows_virtual_machine/main.tf b/modules/windows_virtual_machine/main.tf index 35cac2f..05dce3d 100644 --- a/modules/windows_virtual_machine/main.tf +++ b/modules/windows_virtual_machine/main.tf @@ -45,11 +45,11 @@ resource "random_password" "this" { } resource "azurerm_network_interface" "this" { - name = coalesce(var.custom_network_interface_name, "${module.naming.windows_virtual_machine.name}-nic") - location = var.location - resource_group_name = var.resource_group_name - enable_ip_forwarding = var.enable_ip_forwarding - enable_accelerated_networking = var.enable_accelerated_networking + name = coalesce(var.custom_network_interface_name, "${module.naming.windows_virtual_machine.name}-nic") + location = var.location + resource_group_name = var.resource_group_name + ip_forwarding_enabled = var.enable_ip_forwarding + accelerated_networking_enabled = var.enable_accelerated_networking ip_configuration { name = var.ip_configuration_name subnet_id = var.subnet_id