azurerm_dns_srv_record

    0

    0

    lucycodes42

    Terraform snippets

    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"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.