How does one get a domain into a healthy state using the Microsoft Graph Api?
Domains that are created and verified using the Graph Api always show with an exclamation mark and "Incomplete Setup" in the Office 365 management portal.
The steps performed by the GraphApi are as follows:
- Create a domain using the graph api in tenancy.
POST /domains
- Get the domain txt records from graph api.
GET /domains/{domainName}/verificationDnsRecords
- Add TXT records to DNS zone on Cpanel (external)
- Verify domain using Graph Api.
POST /domains/{domainName}/verify
- Set Services.
PATCH /domains/{domainName}
However after performing all the above steps the domain still shows as in an incomplete state. The only way to get it to Healthy state is by using the portal.
Including step 5 or leaving it out doesn't make a difference at all.
How does one get a domain into a Healthy state using the Graph Api?