Create list of multiple nic configurations

Hi,

I’m trying to understand how to create a list of internal ip addresses from multiple vm on Azure NIC settings.

I’m now able to output each of them, but how can I made a list of them, to allow my next step on devops pipeline process on each of them?

I’m using the code below to create nics for VMs. I have this code on each vm being created by pipeline.

resource "azurerm_network_interface" "example" {
  name                = "example-nic"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  ip_configuration {
    name                          = "internal"
    subnet_id                     = azurerm_subnet.example.id
    private_ip_address_allocation = "Dynamic"
  }
}

Thanks