Azure / Azure/azure-cli

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

Open
#24,457 3 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM Auto-Assign Azure CLI Team feature-request
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**
![image](https://user-images.githubusercontent.com/58762114/198304446-03479a04-e7d8-4812-b57d-856fd82cb648.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.