Azure / Azure/azure-cli

az lock show is missing the property resourcename

Open
#18,359 4 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I am missing the property `resourcename ` on which the lock applies, when executing `az lock show --ids xxxx`
When using Az powershell module command 'Get-AzResourceLock' the information is available.

Is it correct that this is missing or am I executing the wrong code ?

`az lock show --ids "/subscriptions/xxxxx/resourcegroups/rg-dev-xxxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai-xxxxx-dev-001/providers/Microsoft.Authorization/locks/lock-delete-dev-uai" | ConvertFrom-Json `

RESULT:
id :
level :
name :
notes :
owners :
resourceGroup :
type :

`Get-AzResourceLock -ResourceGroupName rg-dev-xxxx `

RESULT:
Name :
ResourceId :
ResourceName :
ResourceType :
ExtensionResourceName :
ExtensionResourceType :
ResourceGroupName :
SubscriptionId :
Properties :
LockId :

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 62eb3c9f-6934-17b1-5639-c738c1e5cdf3
* Version Independent ID: 1762377d-18df-77c4-bf83-398eec407af9
* Content: [az lock](https://docs.microsoft.com/en-us/cli/azure/lock?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/lock.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/lock.yml)
* Service: **azure-resource-manager**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

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.