Powershell AzureAD - cannot find DNS verification records (DNS TXT)

Claes 1 Reputation point
2022-05-24T16:10:58.533+00:00

In powershell - AzureAD - i write:
New-AzureADDomain -Name "test3.se"

Anyone who knows how to get the Domain TXT verification record? "ms=...".

It's easy using MSOLservice. But I can't find it anywhere here...

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2022-05-24T18:52:30.7+00:00

    If you're running Windows PowerShell, use the Get-DNSServerResourceRecord cmdlet.

    If you're doing this in Azure, I think you need to use Get-AzDnsRecordSet instead.

    0 comments No comments

  2. Claes 1 Reputation point
    2022-05-24T19:36:23.467+00:00

    Hi,
    What I need is to verify a domain I added to an account. Similar to the function used in msolservice. See below:
    205213-image.png


  3. Claes 1 Reputation point
    2022-05-25T06:09:28.03+00:00

    Hi again,
    I need to retrieve the verification information (ms=ms16511684) in the AzureAD cmdlet - not msolservice. That is my issue :-)
    The information is clearly visible in portal.azure.com - but I need to find it using powerapps - azuread.

    Regards

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.