Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

missing equivalent of azurerm_network_interface_security_group_association #204

@smartpcr

Description

@smartpcr

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureStack Provider) Version

terraform v1.3.3
azurestack v1.0.0

I can use resource azurerm_network_interface_security_group_association to associate nic and nsg, but unable to do so in azurestack.

when trying the following definition, I get error

An argument named "network_security_group_id" is not expected here.
resource "azurestack_network_interface" "nics" {
  for_each                  = { for nic in var.nics : nic.id => nic }
  name                      = each.value.name
  location                  = data.azurestack_resource_group.rgs[each.value.resource_group_name].location
  resource_group_name       = data.azurestack_resource_group.rgs[each.value.resource_group_name].name
  network_security_group_id = azurestack_network_security_group.nsgs[each.value.nsg_resource_id].id


  ip_configuration {
    name                          = each.value.ip_configs[0].name
    subnet_id                     = each.value.ip_configs[0].subnet_resource_id
    private_ip_address_allocation = each.value.ip_configs[0].private_ip_address_allocation
    public_ip_address_id          = each.value.ip_configs[0].public_ip_address_resource_id
  }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions