Get-AzureADDomain
Gets a domain.
Syntax
GetQuery (Default)
Get-AzureADDomain
[<CommonParameters>]
GetById
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
GetById
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 Get-AzureADDomain to the Microsoft Graph PowerShell.