Commands › Exchange Online

New-PartnerApplication

Exchange Online ExchangeOnlineManagement New-*

This cmdlet is functional only in on-premises Exchange. Use the New-PartnerApplication cmdlet to create partner application configurations in on-premises Exchange organizations.

Quick start script

# New-PartnerApplication — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-PartnerApplication
$before | Format-List

# 3. Make the change (dry run first)
New-PartnerApplication -Name <String> -ApplicationIdentifier <String> -AuthMetadataUrl <String> -WhatIf
New-PartnerApplication -Name <String> -ApplicationIdentifier <String> -AuthMetadataUrl <String>

# 4. Verify and diff
$after = Get-PartnerApplication
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax — 2 parameter sets

ACSTrustApplication

New-PartnerApplication [-Name] <String> -ApplicationIdentifier <String>
 [-Realm <String>]
 [-AcceptSecurityIdentifierInformation <Boolean>]
 [-AccountType <SupportedAccountType>]
 [-ActAsPermissions <String[]>]
 [-AppOnlyPermissions <String[]>]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Enabled <Boolean>]
 [-IssuerIdentifier <String>]
 [-LinkedAccount <UserIdParameter>]
 [-WhatIf]
 [<CommonParameters>]

AuthMetadataUrl

New-PartnerApplication [-Name] <String> -AuthMetadataUrl <String>
 [-TrustAnySSLCertificate]
 [-AcceptSecurityIdentifierInformation <Boolean>]
 [-AccountType <SupportedAccountType>]
 [-ActAsPermissions <String[]>]
 [-AppOnlyPermissions <String[]>]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-Enabled <Boolean>]
 [-IssuerIdentifier <String>]
 [-LinkedAccount <UserIdParameter>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (15)

ParameterTypeRequiredWhat it controls
-Name String yes The Name parameter specifies a name for the partner application.
-ApplicationIdentifier String yes The ApplicationIdentifier parameter specifies a unique application identifier for the partner application that uses an authorization server. When specifying a value for the ApplicationIdentifier parameter, you must...
-AuthMetadataUrl String yes This parameter is available only in on-premises Exchange.
-AcceptSecurityIdentifierInformation Boolean The AcceptSecurityIdentifierInformation parameter specifies whether Exchange should accept security identifiers (SIDs) from another trusted Active Directory forest for the partner application. By default, new partner...
-AccountType SupportedAccountType The AccountType parameter specifies the type of Microsoft account that's required for the partner application. Valid values are:
-ActAsPermissions String[] This parameter is reserved for internal Microsoft use.
-AppOnlyPermissions String[] This parameter is reserved for internal Microsoft use.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Enabled Boolean The Enabled parameter specifies whether the partner application is enabled. By default, new partner applications are enabled. Set the parameter to $false to create the application configuration in a disabled state.
-IssuerIdentifier String This parameter is reserved for internal Microsoft use.
-LinkedAccount UserIdParameter The LinkedAccount parameter specifies a linked Active Directory user account for the application. Exchange evaluates Role Based Access Control (RBAC) permissions for the linked account when authorizing a token used...
-Realm String This parameter is available only in on-premises Exchange.
-TrustAnySSLCertificate SwitchParameter This parameter is available only in on-premises Exchange.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.