Skip to content
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

Error message is unclear when updating secret which is being purged #14800

Closed
dingmeng-xue opened this issue Apr 21, 2021 · 0 comments · Fixed by #14822
Closed

Error message is unclear when updating secret which is being purged #14800

dingmeng-xue opened this issue Apr 21, 2021 · 0 comments · Fixed by #14822
Assignees
Labels
feature-request This issue requires a new behavior in the product in order be resolved. KeyVault

Comments

@dingmeng-xue
Copy link
Member

dingmeng-xue commented Apr 21, 2021

Description of the new feature

request comes from #14788

Create one secret, and then delete it. The secret is during purge. Then try to update secret again. It shows error but it's not clear to end user.

PS C:\dixue> Set-AzKeyVaultSecret -VaultName dixuekv0421 -Name foo -SecretValue (ConvertTo-SecureString "123" -AsPlainText -Force)
Set-AzKeyVaultSecret : Operation returned an invalid status code 'Conflict'
At line:1 char:1
+ Set-AzKeyVaultSecret -VaultName dixuekv0421 -Name foo -SecretValue (C ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : CloseError: (:) [Set-AzKeyVaultSecret], KeyVaultErrorException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultSecret

We should show message which comes from server

Secret foo is currently in a deleted but recoverable state, and its name cannot be reused; in this state, the secret can only be recovered or purged.

Proposed implementation details (optional)

@dingmeng-xue dingmeng-xue 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 Apr 21, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Apr 21, 2021
@dingmeng-xue dingmeng-xue added this to the S187 (2021-05-25) milestone Apr 21, 2021
@BethanyZhou BethanyZhou linked a pull request Apr 25, 2021 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requires a new behavior in the product in order be resolved. KeyVault
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants