Azure / Azure/azure-powershell

[Doc]: Get-AzKeyVaultSecret breaking change - Certificate-backed secrets will no longer be returned when listing secrets.

Open
#29,476 1 comment 0 reactions 0 assignees View on GitHub
customer-reported needs-triage
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Type of issue

Missing information

### Feedback

Az.KeyVault version 7 will have a breaking change for the Get-AzKeyVaultSecret cmdlet, [detailed here](https://learn.microsoft.com/en-us/powershell/azure/upcoming-breaking-changes?view=azps-15.5.0#azkeyvault), which says the following:

`Certificate-backed secrets will no longer be returned when listing secrets. Use the certificate cmdlets (Get-AzKeyVaultCertificate) to manage these secrets.`

We are currently using Get-AzKeyVaultSecret to get certificates with their private key. Get-AzKeyVaultCertificate does not return the private key, as far as I know. Does the warning mean it will not return the secrets when "listing" all the secrets in the key vault i.e. using Get-AzKeyVaultSecret without the `-Name` parameter? That will not impact us, if so.

### Page URL

_No response_

### Content source URL

_No response_

### Author

_No response_

### Document Id

_No response_

### Platform Id

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.