Skip to main content

lock

Azure Lock Object. Locks are useful to stop accidental deletion and enforce read access. Multiple locks can be added for different purposes. Generally only humans should have access to remove locks and automation/code should not have the capability to delete locks in order to avoid accidental deletion. The Lock object is applicable to almost all Azure resources.

Attributes

AttributeTypeMandatoryValuesDefaultNotes
NameStringYes
LevelStringYesCanNotDelete
ReadOnly
NotesStringNo

Input by YAML

Object model for YAML deployment:

    Lock:
- Name: 'string'
Level: 'string' # CanNotDelete, ReadOnly
Notes: 'string'

Input by JSON

Object model for JSON deployment:

      "Lock": [
{
"Name": "string",
"Level": "string",
"Notes": "string"
}
]