Skip to content

[Feature]: Remove specific Secret Versions with Remove-AzKeyVaultSecret #27417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GreedTP opened this issue Mar 24, 2025 · 1 comment
Closed
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.

Comments

@GreedTP
Copy link

GreedTP commented Mar 24, 2025

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 with Remove-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>

@GreedTP GreedTP added 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. labels Mar 24, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Mar 24, 2025
@GreedTP
Copy link
Author

GreedTP commented Mar 24, 2025

Looks like it's not supported by the api..

@GreedTP GreedTP closed this as completed Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant