< Back

Get-AzureKeyVaultCertificatePolicy

Tue Jan 29, 2019 9:50 pm

NAME Get-AzureKeyVaultCertificatePolicy



SYNOPSIS

Gets the policy for a certificate in a key vault.





SYNTAX

Get-AzureKeyVaultCertificatePolicy [-InputObject] <PSKeyVaultCertificateIdentityItem> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]



Get-AzureKeyVaultCertificatePolicy [-VaultName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Get-AzureKeyVaultCertificatePolicy cmdlet gets the policy for a certificate in a key vault in Azure Key Vault.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InputObject <PSKeyVaultCertificateIdentityItem>

Certificate Object.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Specifies the name of a certificate.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VaultName <String>

Specifies the name of a key vault.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy







NOTES









Example 1: Get a certificate policy



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

RenewAtNumberOfDaysBeforeExpiry :

RenewAtPercentageLifetime : 80

EmailOnly : False

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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... catepolicy

New-AzureKeyVaultCertificatePolicy

Set-AzureKeyVaultCertificatePolicy