-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupResource ManagerbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Milestone
Description
There are a number of serious usability issues with the az lock commands. As far as I can tell, only the list command works...
- There are no tests for any of the lock commands.
- I could not create a lock on my VNET using the
az lock createcommand. It says:The resource type could not be found in the namespace 'Microsoft.Network' for api version '2015-01-01'.It could be using the API version of the lock API but needing the API version of the virtualNetworks resource. Theaz resourcecommands handle this behind the scenes. - As reported in [ResourceManager] Unable to delete locks #2688, I cannot delete a lock with
az lock delete. If I specify only the name (which is the only required parameter but logically shouldn't work because the resource is associated with a resource group) I get no output. If I specify name and some of the optional parameters, I get no output. If I specify ALL of the parameters, I get the same output about not finding the resource type for the API version as when I try thelock createcommand. -
az lock showtakes resource group and name as parameters, but I cannot show a lock that I know exists by specifying these. It simply returns nothing. -
az lock createhandles two scenarios: placing a lock on a resource group or placing a lock on a resource in a resource group. If you specify some (but not all) of the parameters to specify a lock on a resource, the command silently places a lock on the resource-group. Instead, it should throw an error that you didn't specify enough parameters to identify the resource. (PR Add some more error checking/handling. #2768) -
--parent-resource-pathis listed as optional, but if you omit it, it says "Parameter 'parent_resource_path' can not be None." You have to specify ''... (PR Fix lock create and delete if parent-resource-path is None #2742) - The parameter names for specifying the resource are inconsistent with the
az resourcecommands. Specifically:az lock: --parent-resource-path, --resource-provider-namespaceare inconsistent withaz resource: --namespace, --parent. (PR Make argument parameters match up. #2717) - The
idsparameter is not supported for either the lock itself or the target resource. It should be supported for both. - in
az resource,--resource-typeaccepts the type or namespace/type.az lockdoes not do this. (PR Make argument parameters match up. #2717) - No short summaries for any of the commands
-
az lock updatehas parameters with no help text (PR Add docs for az lock update. #2702)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupResource ManagerbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.