I am trying to make a query that will allow me to view every Resource Lock within our Resource Groups and I have gotten nowhere with it. I am very new to Kusto and help would be appreciated!
Asked
Active
Viewed 866 times
0
-
you probably want to provide some sample data (in a form of a datatable()) and the expected output to get a meaningful answer. – Avnera Jun 10 '21 at 06:13
1 Answers
1
As per my Knowledge, we can pull the list of resource that having locks in the subscription by using either rest Api or from Azure CLI
From Azure CLI ,we can use the below command
az lock list [--filter-string] [--namespace] [--parent] [--query-examples] [--resource] [--resource-group] [--resource-type] [--subscription]
Here is the rest API, to pull the management locks, at subscription level
if you want to pull the Management locks at resource level you need to specify the particular resource group & lock name as well

VenkateshDodda
- 4,723
- 1
- 3
- 12
-
@NitroNation15 - If the above provided answer was helpful ? If so could you please mark the accept the answer as solution. This could help other community users who have similar query in the future. – VenkateshDodda Jun 23 '21 at 05:21