Resource Locks Flashcards
What is an Azure Resource Lock?
Allows for the locking of a subscription, resource group, or resource to prevent other users in your organization from accidentally deleting or modifying critical resources.
Does an Azure Resource Lock override permissions the user might have?
Yes
What are the two lock levels in the Azure portal you can set resources to?
Delete (CanNotDelete)
Read-only (ReadOnly)
Unlike role-based access control, resource locks apply restrictions to what users and roles?
They apply restrictions across all users and roles.
When you apply a lock at a parent scope, all resources within that scope inherit the same lock. However, do the resources you add later also inherit the lock from the parent?
Yes, Even resources you add later inherit the lock from the parent.
NOTE: The most restrictive lock in the inheritance takes precedence.
Azure operations can be divided into two categories - control plane and data plane. Locks only apply to what operations?
Locks only apply to control plane operations.
What would be a basic example of a PowerShell and Azure CLI command for creating new Resource Locks?
New-AzResourceLock -Locklevel <> -LockName <> -ResourceName <>
az lock create –name <> –lock-type <> –resource-group <>