共用方式為


Get-AzureRmADAppCredential

擷取與應用程式相關聯的認證清單。

警告

自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。

雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源

Syntax

Get-AzureRmADAppCredential
   -ObjectId <Guid>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmADAppCredential
   -ApplicationId <Guid>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmADAppCredential
   -DisplayName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmADAppCredential
   -ApplicationObject <PSADApplication>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzureRmADAppCredential Cmdlet 可用來擷取與應用程式相關聯的認證清單。 此命令會擷取與應用程式相關聯的所有認證屬性(但不是認證值)。

範例

範例 1 - 依物件識別碼取得應用程式認證

PS C:\> Get-AzureRmADAppCredential -ObjectId 1f99cf81-0146-4f4e-beae-2007d0668476

傳回與具有物件標識碼 '1f99cf81-0146-4f4e-beae-2007d0668476' 之應用程式相關聯的認證清單。

範例 2 - 透過管線取得應用程式認證

PS C:\> Get-AzureRmADApplication -ObjectId 1f99cf81-0146-4f4e-beae-2007d0668476 | Get-AzureRmADAppCredential

取得對象標識碼為 '1f99cf81-0146-4f4e-beae-2007d0668476' 的應用程式,並將其管線傳送至 Get-AzureRmADAppCredential Cmdlet,以列出該應用程式的所有認證。

參數

-ApplicationId

要從中擷取認證的應用程式標識碼。

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

-ApplicationObject

要從中擷取認證的應用程式物件。

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

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

應用程式的顯示名稱。

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

-ObjectId

要從中擷取認證的應用程式對象標識碼。

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

輸入

Guid

String

PSADApplication

參數:ApplicationObject (ByValue)

輸出

PSADCredential