Use this data source to access information about an existing Private DNS SRV Record within Azure DNS.
resource "azurerm_private_dns_srv_record" "example" {
name = "test"
zone_name = "test-zone"
resource_group_name = "test-rg"
}
output "private_dns_srv_record_id" {
value = data.azurerm_private_dns_srv_record.example.id
}
name
- The name of the Private DNS SRV Record.
resource_group_name
- Specifies the resource group where the Private DNS Zone (parent resource) exists.
zone_name
- Specifies the Private DNS Zone where the resource exists.
id
- The Private DNS SRV Record ID.
fqdn
- The FQDN of the Private DNS SRV Record.
ttl
- The Time To Live (TTL) of the Private DNS record in seconds.
record
- A list of values that make up the SRV record. Each record
block supports fields documented below.
tags
- A mapping of tags assigned to the resource.
The record
block supports:
priority
- Priority of the SRV record.
weight
- Weight of the SRV record.
port
- Port the service is listening on.
target
- FQDN of the service.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Private DNS SRV Record.