Get-AzureADDomain
Gets a domain.
Syntax
Get-AzureADDomain []
Get-AzureADDomain
-Name <String>
[<CommonParameters>]
Description
The Get-AzureADDomain cmdlet gets a domain in Azure Active Directory (AD).
Examples
Example 1: Get a list of Domains that have been created.
PS C:\>Get-AzureADDomain
Name AvailabilityStatus AuthenticationType
---- ------------------ ------------------
Contoso.com Managed
Fabrikam.com Managed
Adatum.com Managed
This command retrieves a list of domains.
Example 2: Get a specific Domain.
PS C:\>Get-AzureADDomain -Name Contoso.com
Name AvailabilityStatus AuthenticationType
---- ------------------ ------------------
Contoso.com Managed
This command retrieves a domain with the specified name.
Parameters
-Name
Specifies the name of a domain.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Notes
See the migration guide for Get-AzureADDomain to the Microsoft Graph PowerShell.