New-AzureADDomain

Creates a domain.

Syntax

New-AzureADDomain
   [-IsDefault <Boolean>]
   [-IsDefaultForCloudRedirections <Boolean>]
   -Name <String>
   [-SupportedServices <System.Collections.Generic.List`1[System.String]>]
   [<CommonParameters>]

Description

The New-AzureADDomain cmdlet creates a domain in Azure Active Directory (AD).

Examples

Example 1: Create a new Domain

PS C:\>New-AzureADDomain -Name Contoso.com 

Name        AvailabilityStatus AuthenticationType
----        ------------------ ------------------
Contoso.com                    Managed

This command creates a new domain.

Example 2: Create a new Domain with a list of domain capabilities

PS C:\>New-AzureADDomain -Name Contoso.com -SupportedServices @("Email", "OfficeCommunicationsOnline")

Name        AvailabilityStatus AuthenticationType
----        ------------------ ------------------
Contoso.com                    Managed

This command creates a new domain with the specified services for this domain.

Example 3: Create a new Domain as the default for cross cloud redirections

PS C:\>New-AzureADDomain -Name Contoso.com -IsDefaultForCloudRedirections

          Name        AvailabilityStatus AuthenticationType
          ----        ------------------ ------------------
          Contoso.com                    Managed

This command creates a new domain and marks it as the default for cross cloud redirections.

Example 4: Create a new Domain and make if the default new user creation

PS C:\>New-AzureADDomain -Name Contoso.com -IsDefault

          Name        AvailabilityStatus AuthenticationType
          ----        ------------------ ------------------
          Contoso.com                    Managed

This command creates a new domain and marks it as the default to be used for new user creation.

Parameters

-IsDefault

Indicates whether or not this is the default domain that is used for user creation. There is only one default domain per company.

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

-IsDefaultForCloudRedirections

Indicates whether or not this is the default domain used for cloud redirections.

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

-Name

The fully qualified name of the domain.

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

-SupportedServices

The capabilities assigned to the domain.

Type:List<T>[String]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Notes

See the migration guide for New-AzureADDomain to the Microsoft Graph PowerShell.