Sign in to the Azure portal with your Azure account.
Create a DNS zone (If a DNS zone for the domain is already created, skip to step 3.)
At upper left, select Create a resource, then Networking, and then DNS zone.
On the Create DNS zone page, type or select the following values:
Name: Type contoso.xyz for this quickstart example. The DNS zone name can be any value that is not already configured on the Azure DNS servers. A real-world value would be a domain that you bought from a domain name registrar.
Resource group: Select Create new, enter MyResourceGroup, and select OK. The resource group name must be unique within the Azure subscription.
Create a DNS record
In the Azure portal, under All resources, open the contoso.xyz DNS zone in the MyResourceGroup resource group. You can enter contoso.xyz in the Filter by name box to find it more easily.
At the top of the DNS zone page, select + Record set.
On the Add record set page, type or select the following values:
Host: Enter the host name for the TXT record. For example, enter @ for an SPF record, or enter the value _dmarc for a DMARC record.
Value: The value you are setting as the destination of the Host.
TTL: Determine how long the server should cache information.
Click 'Save' to publish the newly created record.
Create a free OnDMARC account to test your configuration.