Get-AzureADDomainVerificationDnsRecord

Retrieve the domain verification DNS record for a domain

Syntax

Get-AzureADDomainVerificationDnsRecord
   -Name <String>
   [<CommonParameters>]

Description

Gets the domain's verification records from the verificationDnsRecords navigation property. You can't use the domain with your Azure AD tenant until you have successfully verified that you own the domain. To verify the ownership of the domain, you need to first retrieve a set of domain verification records which you need to add to the zone file of the domain.

Examples

Example 1

PS C:\WINDOWS\system32> Get-AzureADDomainVerificationDnsRecord -Name drumkit.onmicrosoft.com

DnsRecordId                          Label                   SupportedService Ttl
-----------                          -----                   ---------------- ---
aceff52c-06a5-447f-ac5f-256ad243cc5c drumkit.onmicrosoft.com Email            3600
5fbde38c-0865-497f-82b1-126f596bcee9 drumkit.onmicrosoft.com Email            3600

This example shows how to retrieve the domain verification DNS records for the given domain name

Parameters

-Name

The domain name for which the domain verification DNS records are to be retrieved

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

Object

Notes

See the migration guide for Get-AzureADDomainVerificationDnsRecord to the Microsoft Graph PowerShell.