diff --git a/docs/static/includes/interfaces/bicep/int.locks.input.bicep b/docs/static/includes/interfaces/bicep/int.locks.input.bicep index 02ab7e44a..72f134487 100644 --- a/docs/static/includes/interfaces/bicep/int.locks.input.bicep +++ b/docs/static/includes/interfaces/bicep/int.locks.input.bicep @@ -1 +1,5 @@ -lock: 'CanNotDelete' +lock: { + kind: 'CanNotDelete' + name: 'myCustomLockName' + notes: 'This is a custom lock note.' +} diff --git a/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep b/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep index 9a0948b1b..4e9f2efe4 100644 --- a/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep +++ b/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep @@ -1,4 +1,3 @@ - // ============== // // Parameters // // ============== // @@ -15,7 +14,9 @@ resource >singularMainResourceType<_lock 'Microsoft.Authorization/locks@2020-05- name: lock.?name ?? 'lock-${name}' properties: { level: lock.?kind ?? '' - notes: lock.?kind == 'CanNotDelete' ? 'Cannot delete resource or child resources.' : 'Cannot delete or modify the resource or child resources.' + notes: lock.?notes ?? (lock.?kind == 'CanNotDelete' + ? 'Cannot delete resource or child resources.' + : 'Cannot delete or modify the resource or child resources.') } scope: >singularMainResourceType< }