title: Create a Domain in a healthy state using the Microsoft Graph Api
body: <p>How does one get a domain into a healthy state using the Microsoft Graph Api?</p>
  
  <p>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.</p>
  
  <p>The steps performed by the GraphApi are as follows:</p>
  
  <ol>
  <li>Create a domain using the graph api in tenancy. <code>POST /domains</code></li>
  <li>Get the domain txt records from graph api. <code>GET /domains/{domainName}/verificationDnsRecords</code></li>
  <li>Add TXT records to DNS zone on Cpanel (external)</li>
  <li>Verify domain using Graph Api. <code>POST /domains/{domainName}/verify</code></li>
  <li>Set Services. <code>PATCH /domains/{domainName}</code></li>
  </ol>
  
  <p>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.</p>
  
  <p>Including step 5 or leaving it out doesn't make a difference at all.</p>
  
  <p>How does one get a domain into a Healthy state using the Graph Api?</p>
  
  <p><a href="https://i.stack.imgur.com/D3Lco.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D3Lco.png" alt="Office 365 Management Portal"></a></p>