Skip to content

Commit

Permalink
Add a route table to direct entra traffic to the Internet
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Mar 1, 2024
1 parent c1ad3c7 commit eb31ec9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions operations/template/net.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,25 @@ resource "azurerm_network_security_rule" "db_outbound_auth_allow_small" {
network_security_group_name = azurerm_network_security_group.db_security_group_small.name
}

resource "azurerm_route_table" "database" {
name = "database-test"
location = data.azurerm_resource_group.group.location
resource_group_name = data.azurerm_resource_group.group.name
}

resource "azurerm_route" "entra_internet" {
name = "entra_internet"
resource_group_name = data.azurerm_resource_group.group.name
route_table_name = azurerm_route_table.database.name
address_prefix = "AzureActiveDirectory"
next_hop_type = "Internet"
}

resource "azurerm_subnet_route_table_association" "database_database" {
subnet_id = azurerm_subnet.database.id
route_table_id = azurerm_route_table.database.id
}

resource "azurerm_network_security_rule" "DB_Splunk_UF_omhsinf" {
name = "DB_Splunk_UF_omhsinf"
priority = 103
Expand Down

0 comments on commit eb31ec9

Please sign in to comment.