Confirm-EntraDomain
Validate the ownership of a domain.
Syntax
Confirm-EntraDomain
-Name <String>
[-CrossCloudVerificationCode <CrossCloudVerificationCodeBody>]
[<CommonParameters>]
Description
The Confirm-EntraDomain
cmdlet validates the ownership of a Microsoft Entra ID domain.
The work or school account needs to belong to at least the Domain Name Administrator Microsoft Entra role.
Examples
Example 1: Confirm the domain
Connect-Entra -Scopes 'Domain.ReadWrite.All'
Confirm-EntraDomain -Name Contoso.com
This example verifies a domain and updates its status to verified
.
Example 2: Confirm the domain with a cross cloud verification code
Connect-Entra -Scopes 'Domain.ReadWrite.All'
Confirm-EntraDomain -Name Contoso.com -CrossCloudVerificationCode ms84324896
This example confirms a domain in dual federation scenarios.
Parameters
-CrossCloudVerificationCode
The cross-cloud domain verification code.
Type: | CrossCloudVerificationCodeBody |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Specifies the name of the domain.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |