New-EntraApplicationFromApplicationTemplate
Add an instance of an application from the Microsoft Entra gallery to your directory.
Syntax
Default (Default)
New-EntraApplicationFromApplicationTemplate
-ApplicationTemplateId <String>
-DisplayName <ApplicationTemplateDisplayName>
[<CommonParameters>]
Description
The New-EntraApplicationFromApplicationTemplate cmdlet adds an instance of an application from the Microsoft Entra gallery to your directory.
For non-gallery apps, use these application template IDs to configure SSO modes like SAML or password-based SSO:
- Global service:
8adf8e6e-67b2-4cf2-a259-e3dc5476c621 - US government:
4602d0b4-76bb-404b-bca9-2652e1a39c6d - China (21Vianet):
5a532e38-1581-4918-9658-008dc27c1d68
Examples
Example 1: Creates an application from application template
Connect-Entra -Scopes 'Application.ReadWrite.All'
$applicationTemplate = Get-EntraApplicationTemplate -Filter "DisplayName eq 'SAP Fieldglass'"
New-EntraApplicationFromApplicationTemplate -ApplicationTemplateId $applicationTemplate.Id -DisplayName 'Contoso SAP App'
@odata.context servicePrincipal
-------------- ----------------
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.applicationServicePrincipal @{oauth2PermissionScopes=System.Object[]; servicePrincipalType=Application; displ...}
This command instantiates a new application based on application template referenced by the ID.
-ApplicationTemplateIdspecifies Application TemplateId.-DisplayNamespecifies application template display name.
Parameters
-ApplicationTemplateId
The ID parameter specifies Application TemplateId.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | Id |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-DisplayName
Application template display name.
Parameter properties
| Type: | System.ApplicationTemplateDisplayName |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| 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.
Outputs
Microsoft.Online.Administration.ApplicationTemplateCopy
Notes
Quickstart: Add an enterprise application.