Get-AzureRmADAppCredential
擷取與應用程式相關聯的認證清單。
警告
自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。
雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源 。
語法
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
要從中擷取認證的應用程式標識碼。
類型: | Guid |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ApplicationObject
要從中擷取認證的應用程式物件。
類型: | PSADApplication |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶
類型: | IAzureContextContainer |
別名: | AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DisplayName
應用程式的顯示名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ObjectId
要從中擷取認證的應用程式對象標識碼。
類型: | Guid |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
輸入
參數:ApplicationObject (ByValue)