Skip to content

[KeyVault] Fix #33367 az keyvault show-deleted: Fix keyvault show-deleted missing-arg hint and add regression test#33374

Open
flcdrg wants to merge 1 commit into
Azure:devfrom
flcdrg:copilot/fix-azure-cli-issue-33367
Open

[KeyVault] Fix #33367 az keyvault show-deleted: Fix keyvault show-deleted missing-arg hint and add regression test#33374
flcdrg wants to merge 1 commit into
Azure:devfrom
flcdrg:copilot/fix-azure-cli-issue-33367

Conversation

@flcdrg
Copy link
Copy Markdown

@flcdrg flcdrg commented May 13, 2026

Related command

az keyvault show-deleted

Description

Correct the parameter name returned in error message

Testing Guide

az keyvault show-deleted --query ""

Should now return error message mentioning --name instead of --vault-name

This checklist is used to make sure that common guidelines for a pull request are followed.

Agent-Logs-Url: https://github.com/flcdrg/azure-cli/sessions/3235ca65-38e7-45ad-95d2-b1515574eb7b

Co-authored-by: flcdrg 384747+flcdrg@users.noreply.github.com

Fix keyvault show-deleted missing-arg hint and add regression test

Agent-Logs-Url: https://github.com/flcdrg/azure-cli/sessions/3235ca65-38e7-45ad-95d2-b1515574eb7b

Co-authored-by: flcdrg <384747+flcdrg@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 13, 2026 23:41
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 13, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label May 13, 2026
@microsoft-github-policy-service
Copy link
Copy Markdown
Contributor

Thank you for your contribution @flcdrg! We will review the pull request and get back to you soon.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the missing-argument error text for deleted Key Vault/HSM validation so az keyvault show-deleted points users to the actual --name option.

Changes:

  • Updates the validator error message from --vault-name to --name.
  • Adds a regression unit test for the missing-name validation path.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/azure-cli/azure/cli/command_modules/keyvault/_validators.py Corrects the missing-argument hint for deleted vault/HSM commands.
src/azure-cli/azure/cli/command_modules/keyvault/tests/latest/test_keyvault_validators.py Adds unit coverage for the corrected validator message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yonzhan yonzhan assigned notyashhh and unassigned evelyn-ys May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-identity-squad Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. KeyVault az keyvault

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants