From 0f7114c1dd4d8e3e4dc0d18fc603e112b20e4bad Mon Sep 17 00:00:00 2001 From: Vincent Misson Date: Mon, 17 Jun 2024 15:35:25 +0200 Subject: [PATCH] Update parameters name for azurerm_network_interface to be compliant with azurerm 4.0 https://github.com/hashicorp/terraform-provider-azurerm/pull/26293 --- modules/linux_virtual_machine/main.tf | 10 +++++----- modules/network_interface/main.tf | 10 +++++----- modules/windows_virtual_machine/main.tf | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) 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