resource "azurerm_dns_mx_record" "${MyResource}" {
         name = "example-name"
         zone_name = "\${azurerm_dns_zone.test.name}"
         resource_group_name = "\${azurerm_resource_group.test.name}"
         ttl = "300"
      
         record {
             preference = 10
             exchange = "mail1.contoso.com"
         }
      
         record {
             preference = 20
             exchange = "mail2.contoso.com"
         }
      }

      Terraform language logo
      azurerm_dns_mx_record

      Terraform snippets

      This code defines two records in the Azure DNS Mx service. The first record has a preference of 10 and an exchange for mail1.contoso.com. The second record has a preference of 20 and an exchange for mail2.contoso.com.

      Shortcut: tf_azurerm_dns_mx_record

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.