Get-AzKeyVaultCertificatePolicy
Gets the policy for a certificate in a key vault.
Syntax
Get-AzKeyVaultCertificatePolicy
[-VaultName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzKeyVaultCertificatePolicy
[-InputObject] <PSKeyVaultCertificateIdentityItem>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzKeyVaultCertificatePolicy cmdlet gets the policy for a certificate in a key vault in Azure Key Vault.
Examples
Example 1: Get a certificate policy
Get-AzKeyVaultCertificatePolicy -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
This command gets the certificate policy for TestCert01 certificate in the ContosoKV01 key vault.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Certificate Object.
Type: | PSKeyVaultCertificateIdentityItem |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Specifies the name of a certificate.
Type: | String |
Aliases: | CertificateName |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VaultName
Specifies the name of a key vault.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
PSKeyVaultCertificateIdentityItem
Outputs
Related Links
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure PowerShell