Microsoft.Authorization locks template reference

To create a Microsoft.Authorization/locks resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Authorization/locks",
  "apiVersion": "2016-09-01",
  "properties": {
    "level": "string",
    "notes": "string"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Authorization/locks object

Name Type Required Value
name string Yes
type enum Yes Microsoft.Authorization/locks
apiVersion enum Yes 2016-09-01
properties object Yes The properties of the lock. - ManagementLockProperties object

ManagementLockProperties object

Name Type Required Value
level enum Yes The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it. - NotSpecified, CanNotDelete, ReadOnly
notes string No Notes about the lock. Maximum of 512 characters.