feat: connect nsg to subnet
This commit is contained in:
@@ -39,8 +39,8 @@ resource "azurerm_network_security_group" "main" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "azurerm_network_interface_security_group_association" "databaseserver-1" {
|
resource "azurerm_subnet_network_security_group_association" "databaseserver-1" {
|
||||||
network_interface_id = azurerm_network_interface.databaseserver-1.id
|
subnet_id = azurerm_subnet.main.id
|
||||||
network_security_group_id = azurerm_network_security_group.main.id
|
network_security_group_id = azurerm_network_security_group.main.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user