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?
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?
Copyright © 2021 Jogjafile Inc.
You will need to instantiate a
ManagementLockClientobject, then call thecreate_or_update_at_resource_group_levelmethod to create theCanNotDeletelock at resource group level.We can apply the lock at resource group level, because all child resources inherit the same lock from the parent scope.
Demo