Skip to content

Customer feedback | az group lock show | does not work without optional parameters #24457

Open

Description

Query to all az group lock Issues
https://github.com/Azure/azure-cli/issues?q=is%3Aissue+is%3Aopen+group+lock+in%3Atitle%2Cbody+

Describe the bug
az group lock show does not work without optional parameters being supplied.

To Reproduce
az group lock show #fails with unexpected error
az group lock show -g MyResourceGroup #fails with unexpected error
az group lock show -g MyResourceGroup -n MyLockName #succeeds

Expected behavior
All group locks for the current active subscription should be listed as there is no concept of "current active lock". If RG and lockName are actually required, then we need to update our _params.py information.

Environment summary
Azure Cloud Shell

Autogen content link
https://learn.microsoft.com/en-us/cli/azure/group/lock?view=azure-cli-latest#az-group-lock-show

Screen print of test
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions