fortinet / azure-templates

A set of Azure Templates for getting you started in Azure with Fortinet.
MIT License
96 stars 101 forks source link

ip_forward setting azurerm provider change #67

Open ajlab-gh opened 2 months ago

ajlab-gh commented 2 months ago

enable_ip_forwarding has been depecated and replaced with ip_forwarding_enabled

azurerm_network_interface terraform resources should be changed from:

resource "azurerm_network_interface" "fgtport2" {
  name                 = "fgtport2"
  location             = var.location
  resource_group_name  = azurerm_resource_group.myterraformgroup.name
  enable_ip_forwarding = true

  ip_configuration {
    name                          = "ipconfig1"
    subnet_id                     = azurerm_subnet.privatesubnet.id
    private_ip_address_allocation = "Dynamic"
  }

  tags = {
    environment = "Terraform Single FortiGate"
  }
}

To:

resource "azurerm_network_interface" "fgtport2" {
  name                 = "fgtport2"
  location             = var.location
  resource_group_name  = azurerm_resource_group.myterraformgroup.name
  ip_forwarding_enabled = true

  ip_configuration {
    name                          = "ipconfig1"
    subnet_id                     = azurerm_subnet.privatesubnet.id
    private_ip_address_allocation = "Dynamic"
  }

  tags = {
    environment = "Terraform Single FortiGate"
  }
}
jvhoof commented 2 months ago

Hi,

Thank you for opening this issue. We are aware of this change in the latest Azure provider. We will be updating this next batch of updates in the next couple of weeks.

Regards,

Joeri