0
0
llucycodes42
The code using the azurerm_dns_srv_record resource sets up a DNS SRV record for example-name pointing to the zone named test.name in the resource group named test. The record has a priority of 1 and a weight of 5, and the target is set to target1.contoso.com.
Shortcut: tf_azurerm_dns_srv_record
resource "azurerm_dns_srv_record" "${MyResource}" {
name = "example-name"
zone_name = "\${azurerm_dns_zone.test.name}"
resource_group_name = "\${azurerm_resource_group.test.name}"
ttl = "300"
record {
priority = 1
weight = 5
port = 8080
target = "target1.contoso.com"
}
}