Skip to content

Commit

Permalink
Adding NSG
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrichlake committed Mar 1, 2024
1 parent a71f3b2 commit c8921f3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions operations/template/net.tf
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,19 @@ resource "azurerm_network_security_rule" "db_outbound_allow" {
resource_group_name = data.azurerm_resource_group.group.name
network_security_group_name = azurerm_network_security_group.db_security_group.name
}
resource "azurerm_network_security_rule" "db_outbound_auth_allow" {
name = "db_outbound_auth_allow"
priority = 110
direction = "Outbound"
access = "Allow"
protocol = "*"
source_port_range = "*"
destination_port_range = "*"
source_address_prefix = "*"
destination_address_prefix = "AzureActiveDirectory"
resource_group_name = data.azurerm_resource_group.group.name
network_security_group_name = azurerm_network_security_group.db_security_group.name
}

resource "azurerm_network_security_rule" "db_inbound_allow" {
name = "db_inbound_allow"
Expand Down

0 comments on commit c8921f3

Please sign in to comment.