New-EntraApplicationFromApplicationTemplate
Add an instance of an application from the Microsoft Entra application gallery into your directory.
Syntax
New-EntraApplicationFromApplicationTemplate
-Id <String>
-DisplayName <ApplicationTemplateDisplayName>
[<CommonParameters>]
Description
The New-EntraApplicationFromApplicationTemplate
cmdlet adds an instance of an application from the Microsoft Entra application gallery into your directory.
The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621
can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO.
Examples
Example 1: Creates an application from application template
Connect-Entra -Scopes 'Application.ReadWrite.All','Application.ReadWrite.OwnedBy'
$applicationTemplate = Get-EntraApplicationTemplate -Filter "DisplayName eq 'SAP Fieldglass'"
New-EntraApplicationFromApplicationTemplate -Id $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.
-Id
specifies Application TemplateId.-DisplayName
specifies application template display name.
Parameters
-DisplayName
Application template display name.
Type: | System.ApplicationTemplateDisplayName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
The Id parameter specifies Application TemplateId.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
Microsoft.Online.Administration.ApplicationTemplateCopy