Get-AzureKeyVaultCertificatePolicy
取得金鑰保存庫中憑證的原則。
警告
自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。
雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源 。
語法
Get-AzureKeyVaultCertificatePolicy
[-VaultName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureKeyVaultCertificatePolicy
[-InputObject] <PSKeyVaultCertificateIdentityItem>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzureKeyVaultCertificatePolicy Cmdlet 會取得 Azure 金鑰保存庫 密鑰保存庫中憑證的原則。
範例
範例 1:取得憑證原則
PS C:\ >Get-AzureKeyVaultCertificatePolicy -VaultName "ContosoKV01" -Name "TestCert01"
SecretContentType : application/x-pkcs12
Kty : RSA
KeySize : 2048
Exportable : True
ReuseKeyOnRenewal : True
SubjectName : CN=contoso.com
DnsNames :
Ekus : {1.3.6.1.5.5.7.3.1, 1.3.6.1.5.5.7.3.2}
ValidityInMonths : 6
IssuerName : Self
CertificateType :
RenewAtNumberOfDaysBeforeExpiry :
RenewAtPercentageLifetime : 80
EmailAtNumberOfDaysBeforeExpiry :
EmailAtPercentageLifetime :
Enabled : True
Created : 2/8/2016 11:10:29 PM
Updated : 2/8/2016 11:10:29 PM
此命令會取得 ContosoKV01 金鑰保存庫中 TestCert01 憑證的憑證原則。
參數
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶
類型: | IAzureContextContainer |
別名: | AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Certificate 物件。
類型: | PSKeyVaultCertificateIdentityItem |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
指定憑證的名稱。
類型: | String |
別名: | CertificateName |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-VaultName
指定金鑰保存庫的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
PSKeyVaultCertificateIdentityItem
參數:InputObject (ByValue)