How to verify Office 365 Email DNS entries on a custom domain using PowerShell

Copper Contributor

Hi,

 

I have a PowerShell script that uses the Active Directory cmdlet:

 

Get-AzureADDomainServiceConfigurationRecord -Name domain-name

 

...to retrieve the required DNS settings for a custom domain that I have added to Office 365. The script then calls my Domain Hosting Provider to apply those DNS settings.

 

Now I would like to tell Office 365 to go and check for those DNS entries and move the enrolled domain from an (as shown in the Office 365 Admin portal) "incomplete setup" to a "healthy" status so I can use it.

 

Can someone point me at the PowerShell cmdlet to do this DNS entries verification step? I have spent a lot of time searching, but to no avail.

 

Thanks very much,

Simon.

0 Replies