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"
         }
      }
      Terraform language logo

      azurerm_dns_srv_record

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.