New-AzADApplication
Creates a new azure active directory application.
Syntax
New-AzADApplication
-DisplayName <String>
-IdentifierUris <String[]>
[-HomePage <String>]
[-ReplyUrls <String[]>]
[-AvailableToOtherTenants <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzADApplication
-DisplayName <String>
-IdentifierUris <String[]>
[-HomePage <String>]
[-ReplyUrls <String[]>]
[-AvailableToOtherTenants <Boolean>]
-Password <SecureString>
[-StartDate <DateTime>]
[-EndDate <DateTime>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzADApplication
-DisplayName <String>
-IdentifierUris <String[]>
[-HomePage <String>]
[-ReplyUrls <String[]>]
[-AvailableToOtherTenants <Boolean>]
-PasswordCredentials <PSADPasswordCredential[]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzADApplication
-DisplayName <String>
-IdentifierUris <String[]>
[-HomePage <String>]
[-ReplyUrls <String[]>]
[-AvailableToOtherTenants <Boolean>]
-CertValue <String>
[-StartDate <DateTime>]
[-EndDate <DateTime>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzADApplication
-DisplayName <String>
-IdentifierUris <String[]>
[-HomePage <String>]
[-ReplyUrls <String[]>]
[-AvailableToOtherTenants <Boolean>]
-KeyCredentials <PSADKeyCredential[]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Creates a new azure active directory application. Below are the permissions needed to create an application:
- Azure Active Directory Graph
- Application.ReadWrite.OwnedBy
- Microsoft Graph
- Directory.AccessAsUser.All
- Directory.ReadWrite.All
Examples
Example 1: Create new AAD application.
PS C:\> New-AzADApplication -DisplayName "NewApplication" -HomePage "http://www.microsoft.com" -IdentifierUris "http://NewApplication"
Creates a new azure active directory application without any credentials.
Example 2: Create new AAD application with password.
PS C:\> $SecureStringPassword = ConvertTo-SecureString -String "password" -AsPlainText -Force
PS C:\> New-AzADApplication -DisplayName "NewApplication" -HomePage "http://www.microsoft.com" -IdentifierUris "http:
//NewApplication" -Password $SecureStringPassword
Creates a new azure active directory application and associates password credentials with it.
Parameters
The value specifying whether the application is a single tenant or a multi-tenant.
Type: | Boolean |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The value of the "asymmetric" credential type. It represents the base 64 encoded certificate.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure
Type: | Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Display name of the new application.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The effective end date of the credential usage. The default end date value is one year from today. For an "asymmetric" type credential, this must be set to on or before the date that the X509 certificate is valid.
Type: | DateTime |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The URL to the application homepage.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The URIs that identify the application.
Type: | String[] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The list of certificate credentials associated with the application.
Type: | Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The password to be associated with the application.
Type: | SecureString |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The list of password credentials associated with the application.
Type: | Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The application reply urls.
Type: | String[] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The effective start date of the credential usage. The default start date value is today. For an "asymmetric" type credential, this must be set to on or after the date that the X509 certificate is valid from.
Type: | DateTime |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
String[]
Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[]
Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[]
Outputs
Microsoft.Azure.Commands.ActiveDirectory.PSADApplication
Notes
Keywords: azure, azurerm, arm, resource, management, manager, resource, group, template, deployment