Suppose I set a Lock on some Azure resource (e.g. on Resource Group). Then I want to see JSON document in Azure Resource Explorer that corresponds to the created Lock. I can see the resource object document but the Lock is not shown there.

2 Answers

0
Joy Wang On

You could use powershell to see it.

Get-AzResourceLock -ResourceGroupName <resource group name> | ConvertTo-Json

enter image description here

For more details about azure cli or rest api, see this link.

0
4c74356b41 On

I'm fairly certain those are not exposed under resource explorer. since the Microsoft.Authorization provider is not even listed in there

you could use any other means to retrieve those