Step 1

Add and verify the domain

Add the domain in the admin centre, publish the TXT record it gives you, then verify. Nothing about email or sign-in changes yet.

15 minutes, plus DNS timeNeeds Global Administrator

Add the domain

Whereadmin.microsoft.com›Settings›Domains›Add domain

Type contoso.com and select Use this domain. Choose Add a TXT record to the domain's DNS records.

Publish the TXT record

The wizard shows a value like MS=ms12345678. Add it at your DNS host:

TypeNameValueTTL
TXT@MS=ms123456783600
Subdomain in its own zone? Use @

For edu.contoso.com the wizard says the name is "edu". If edu.contoso.com has its own DNS zone, the record belongs at @ inside that zone. Putting "edu" there creates edu.edu.contoso.com, and verification fails.

If the domain is in Azure DNS:

Azure CLI
$rg = "rg-contoso-dns"; $z = "contoso.com"
az network dns record-set txt add-record -g $rg -z $z -n "@" -v "MS=ms12345678"

Check it, then verify

Any PC
Resolve-DnsName contoso.com -Type TXT -Server 8.8.8.8 | Select-Object Strings

When the value appears, return to the wizard and select Verify. Next, it asks how to connect services. Choose Add your own DNS records and continue with Add email DNS records.

Done when

Check

Settings › Domains lists contoso.com with the status Verified, even if it still says some records are missing.

Your progress is kept in this browser only.