New-AzureADApplication

New-AzureADApplication

Creates an Active Directory application.

Syntax

Parameter Set: ApplicationWithKeyCredentialParameterSet
New-AzureADApplication -DisplayName <String> -HomePage <String> -IdentifierUris <String[]> -KeyCredentials <PSADKeyCredential[]> [-Profile <AzureProfile> ] [ <CommonParameters>]

Parameter Set: ApplicationWithKeyPlainParameterSet
New-AzureADApplication -DisplayName <String> -HomePage <String> -IdentifierUris <String[]> -KeyValue <String> [-EndDate <DateTime> ] [-KeyType <String> ] [-KeyUsage <String> ] [-Profile <AzureProfile> ] [-StartDate <DateTime> ] [ <CommonParameters>]

Parameter Set: ApplicationWithoutCredentialParameterSet
New-AzureADApplication -DisplayName <String> -HomePage <String> -IdentifierUris <String[]> [-Profile <AzureProfile> ] [ <CommonParameters>]

Parameter Set: ApplicationWithPasswordCredentialParameterSet
New-AzureADApplication -DisplayName <String> -HomePage <String> -IdentifierUris <String[]> -PasswordCredentials <PSADPasswordCredential[]> [-Profile <AzureProfile> ] [ <CommonParameters>]

Parameter Set: ApplicationWithPasswordPlainParameterSet
New-AzureADApplication -DisplayName <String> -HomePage <String> -IdentifierUris <String[]> -Password <String> [-EndDate <DateTime> ] [-Profile <AzureProfile> ] [-StartDate <DateTime> ] [ <CommonParameters>]

Detailed Description

The New-AzureADApplication cmdlet creates an Azure Active Directory application.

Parameters

-DisplayName<String>

Specifies the display name for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-EndDate<DateTime>

Specifies the end date as a DateTime object, such as the one returned by the Get-Date cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-HomePage<String>

Specifies the home page for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-IdentifierUris<String[]>

Specifies an array of Uniform Resource Identifiers (URIs) for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-KeyCredentials<PSADKeyCredential[]>

Specifies an array of Active Directory key credentials for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-KeyType<String>

Specifies the key type for the application.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-KeyUsage<String>

Specifies the key usage for the application.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-KeyValue<String>

Specifies the key value for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Password<String>

Specifies the password for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-PasswordCredentials<PSADPasswordCredential[]>

Specifies an array of Active Directory password credentials for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Profile<AzureProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StartDate<DateTime>

Specifies the start date as a DateTime object, such as the one returned by the Get-Date cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Create an Active Directory application

This command creates an Active Directory application that does not require credentials for user access.

New-AzureADApplication -DisplayName "NewApplication" -HomePage "https://www.Contoso.com" -IdentifierUris "https://NewApplication"

Example 2: Create an Active Directory application that requires a password

This command creates a new Active Directory application and associates a password with it.

New-AzureADApplication -DisplayName "NewApplication" -HomePage "https://www.Contoso.com" -IdentifierUris "https://NewApplication" -Password "password"

New-AzureADServicePrincipal

Remove-AzureADApplication

Remove-AzureADServicePrincipal