共用方式為


Set-AzureADApplicationProxyApplicationCustomDomainCertificate

Set-AzureADApplicationProxyApplicationCustomDomainCertificate Cmdlet 會將憑證指派給在 Azure Active Directory 中為應用程式 Proxy 設定的應用程式, (AD) 。 這會上傳憑證,並允許應用程式使用自定義網域。

語法

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

Description

Set-AzureADApplicationProxyApplicationCustomDomainCertificate Cmdlet 會將憑證指派給在 Azure Active Directory 中為應用程式 Proxy 設定的應用程式, (AD) 。 這會上傳憑證,並允許應用程式使用自定義網域。 如果您有一個包含許多應用程式的憑證,您只需要使用一個應用程式上傳它,而且也會指派給其他相關應用程式。

範例

範例 1

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

範例 1:將憑證指派給為應用程式 Proxy 設定的應用程式

參數

-ObjectId

憑證應上傳至之應用程式的唯一應用程式標識碼。 這可以使用 Get-AzureADApplication 命令找到。 您也可以流覽至 AAD、企業應用程式、所有應用程式、選取您的應用程式、移至屬性索引標籤,然後在該頁面上使用 ObjectId,在 Azure 入口網站中找到此專案。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Password

包含 pfx 憑證密碼的安全字串

類型:SecureString
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-PfxFilePath

自定義網域之 pfx 憑證的檔案路徑

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

System.Security.SecureString

輸出

Object