Skip to content

Commit

Permalink
Add dns record for built in endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and lonegunmanb committed May 17, 2024
1 parent ae299a4 commit 8a17dd2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,13 @@ resource "azurerm_private_endpoint" "dps" {
name = "privateDNSZoneGroup"
private_dns_zone_ids = [azurerm_private_dns_zone.dps.id]
}
}

## Add DNS Record for Built-in eventhub
resource "azurerm_private_dns_a_record" "eventhub" {
name = azurerm_iothub.iothub.event_hub_events_namespace
ttl = 10000
zone_name = azurerm_private_dns_zone.eventhub.name
resource_group_name = azurerm_resource_group.rg.name
records = [azurerm_private_endpoint.iothub.custom_dns_configs[0].ip_addresses[0]]
}

0 comments on commit 8a17dd2

Please sign in to comment.