Skip to content

Commit

Permalink
Update parameters name for azurerm_network_interface to be compliant …
Browse files Browse the repository at this point in the history
  • Loading branch information
vmisson committed Jun 17, 2024
1 parent 8ab04f3 commit 0f7114c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions modules/linux_virtual_machine/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions modules/network_interface/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions modules/windows_virtual_machine/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f7114c

Please sign in to comment.