azure-resource-lock

List and manage Azure Resource Locks with Python SDK

List and manage Azure Resource Locks with Python SDK Question: I am trying to list and loop through Azure Resource Locks of a resource group by using Python SDK. from azure.mgmt.resource.locks.v2016_09_01.aio import ManagementLockClient management_lock_client = ManagementLockClient(credential, subscription.subscription_id) locks = management_lock_client.management_locks.list_at_resource_group_level(resource__group_snapshot) for lock in locks: management_lock_client.management_locks.delete(resource__group_snapshot, lock.name) But here, I get the error: for lock in …

Total answers: 1

How to lock storage accounts in Azure using Python SDK

How to lock storage accounts in Azure using Python SDK Question: I am using python SDK to lock a particular azure resource. Although I found documentation, I am getting exceptions as a resource not found while I am trying to lock the storage account. As I am trying to store accounts in a Resource Grp, …

Total answers: 2

How to lock all resources in an Azure Resource group using Python

How to lock all resources in an Azure Resource group using Python Question: I am using azure SDK python to lock all resources in a specific resource group. I am not able to find proper help/documentation for the same. There are no methods related to this in the azure-mgmt-resource package Can anyone suggest any? Asked …

Total answers: 1