Set-EntraApplicationProxyApplicationCustomDomainCertificate

The Set-EntraApplicationProxyApplicationCustomDomainCertificate cmdlet assigns a certificate to an application configured for Application Proxy in Microsoft Entra ID. This uploads the certificate and allows the application to use Custom Domains.

Syntax

Set-EntraApplicationProxyApplicationCustomDomainCertificate
   -ObjectId <String>
   -PfxFilePath <String>
   -Password <SecureString>
   [<CommonParameters>]

Description

The Set-EntraApplicationProxyApplicationCustomDomainCertificate cmdlet assigns a certificate to an application configured for Application Proxy in Microsoft Entra ID. This uploads the certificate and allows the application to use Custom Domains. If you have one certificate that includes many of your applications, you only need to upload it with one application and are assigned to the other relevant applications.

Examples

Example 1: Assign a certificate to an application configured for Application Proxy

PS C:\> $securePassword = Read-Host -AsSecureString
PS C:\> Set-EntraApplicationProxyApplicationCustomDomainCertificate -ObjectId 4eba5342-8d17-4eac-a1f6-62a0de26311e -PfxFilePath "C:\Temp\Certificates\cert.pfx" -Password $securePassword

This command assigns a certificate to an application configured for Application Proxy.

Parameters

-ObjectId

The unique application ID for the application the certificate should be uploaded to. This can be found using the Get-EntraApplication command. You can also find this in the Azure portal by navigating to AAD, Enterprise Applications, All Applications, Select your application, go to the properties tab, and use the ObjectId on that page.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Password

A secure string containing the password for the pfx certificate

Type:SecureString
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PfxFilePath

The file path for the pfx certificate for the custom domain

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

System.Security.SecureString

Outputs

System.Object

Notes