I am trying to create vrg, vnet, subnets and nsg and assign nsg to the subnets. My terraform scripts works ok, but I require a naming format as of the subnet name in..
“{var.org_name}-{var.env_name}-{var.team_name}-{var.app_id}-nsg-{each.key}-{azurerm_subnet.tiers[each.key].instance}”
“mycomp-dev-fin-app01-nsg-app-01”
I have uploaded the files how can I achieve it. I have tried few examples it is not working.