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

Attribute Type Mandatory Values Default Notes
Name String Yes
Level String Yes CanNotDelete
ReadOnly
Notes String No

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"
        }
      ]