Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing equivalent of azurerm_network_interface_security_group_association #204

Open
smartpcr opened this issue Apr 7, 2023 · 2 comments

Comments

@smartpcr
Copy link

smartpcr commented Apr 7, 2023

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
  }

}
@simonbrady
Copy link

#206 adds the required resource, along with a couple of its close relatives.

@ktzsolt
Copy link

ktzsolt commented Apr 25, 2024

Hi, any update on this? I just hit the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants