Resource Locks Flashcards

1
Q

What is an Azure Resource Lock?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Does an Azure Resource Lock override permissions the user might have?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two lock levels in the Azure portal you can set resources to?

A

Delete (CanNotDelete)

Read-only (ReadOnly)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Unlike role-based access control, resource locks apply restrictions to what users and roles?

A

They apply restrictions across all users and roles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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?

A

Yes, Even resources you add later inherit the lock from the parent.

NOTE: The most restrictive lock in the inheritance takes precedence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Azure operations can be divided into two categories - control plane and data plane. Locks only apply to what operations?

A

Locks only apply to control plane operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What would be a basic example of a PowerShell and Azure CLI command for creating new Resource Locks?

A

New-AzResourceLock -Locklevel <> -LockName <> -ResourceName <>

az lock create –name <> –lock-type <> –resource-group <>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly