azure::mx-record-set

Creates an MX Record Set.

Example

azure::mx-record-set mx-record-set
    name: "mxrecexample"
    ttl: 4
    dns-zone: $(azure::dns-zone dns-zone-example-zones)

    mx-record
       exchange: "mail.cont.com"
       preference: 1
    end

    mx-record
        exchange: "mail.conto.com"
        preference: 2
    end
end

Attributes

Attribute Description
dns-zone The DNS Zone where the MX Record Set resides. (Required)
mx-record set subresource

The list of mx MX Records Set. (Required)

exchange
The mail exchange server’s host name. (Required)
preference
The priority for the mail exchange host. The lower the value, the higher the priority. (Required)
metadata map The metadata for the MX Record Set.
name The name of the MX Record Set. (Required)
ttl The Time To Live in Seconds for the MX Record Set in the set. (Required)

Outputs

Attribute Description
id The ID of the MX Record Set.