Confirm-AzureADDomain
Validate the ownership of a domain.
Syntax
Default (Default)
Confirm-AzureADDomain
-Name <String>
[-CrossCloudVerificationCode <CrossCloudVerificationCodeBody>]
[<CommonParameters>]
Description
The Confirm-AzureADDomain cmdlet validates the ownership of an Azure Active Directory domain.
Examples
Example 1: Confirm the domain
PS C:\>Confirm-AzureADDomain -Name Contoso.com
This command will confirm your domain; changing the status to "Verified".
Example 2: Confirm the domain with a cross cloud verification code
PS C:\>Confirm-AzureADDomain -Name Contoso.com -CrossCloudVerificationCode ms84324896
This command will confirm your domain for dual federation scenarios.
Parameters
-CrossCloudVerificationCode
The cross-cloud domain verification code.
Parameter properties
Type: | CrossCloudVerificationCodeBody |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Name
Specifies the name of the domain.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Notes
See the migration guide for Confirm-AzureADDomain to the Microsoft Graph PowerShell.