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

azure-client-tools-bot-prd Bot commented May 13, 2026

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

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

azure-client-tools-bot-prd Bot commented May 13, 2026

⚠️AzureCLI-BreakingChangeTest
⚠️acr
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd acr replication create cmd acr replication create added parameter region_endpoint_enabled
⚠️ 1006 - ParaAdd acr replication update cmd acr replication update added parameter region_endpoint_enabled
⚠️postgresql
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd postgres flexible-server create cmd postgres flexible-server create added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server create cmd postgres flexible-server create added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server create cmd postgres flexible-server create added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server geo-restore cmd postgres flexible-server geo-restore added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server geo-restore cmd postgres flexible-server geo-restore added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server geo-restore cmd postgres flexible-server geo-restore added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server replica create cmd postgres flexible-server replica create added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server replica create cmd postgres flexible-server replica create added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server replica create cmd postgres flexible-server replica create added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server restore cmd postgres flexible-server restore added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server restore cmd postgres flexible-server restore added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server restore cmd postgres flexible-server restore added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server revive-dropped cmd postgres flexible-server revive-dropped added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server revive-dropped cmd postgres flexible-server revive-dropped added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server revive-dropped cmd postgres flexible-server revive-dropped added property deprecate_info_target

@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.

@isra-fel
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel isra-fel linked an issue May 20, 2026 that may be closed by this pull request
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.

az keyvault purge without arguments gives invalid help output

7 participants