azurerm_dns_mx_record

    0

    0

    lucycodes42

    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

    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"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.