[Feature]: Remove specific Secret Versions with Remove-AzKeyVaultSecret #27417
Labels
customer-reported
feature-request
This issue requires a new behavior in the product in order be resolved.
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
Description of the new feature
Similar to the command
Get-AzKeyVaultSecret
which supports the-Version
parameter, it should be possible to only remove specific versions of a secret withRemove-AzKeyVaultSecret
.Proposed implementation details (optional)
Remove-AzKeyVaultSecret -VaultName "" -Name "" -Version ""
Get-AzKeyVaultSecret -VaultName "" -Name "" -Version "" | Remove-AzKeyVaultSecret
Remove-AzKeyVaultSecret -Id ""
should remove a specific version if the id contains a version like:https://<vault-name>.vault.azure.net/secrets/<secret-name>/<version>
. If the id doesn't contain the version, it should remove the secret instead:https://<vault-name>.vault.azure.net/secrets/<secret-name>
The text was updated successfully, but these errors were encountered: