Customer feedback | az group lock show | does not work without optional parameters
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
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**

Contributor guide
Assessment
This issue has not been assessed yet.