diff --git a/schemas/2018-05-01/Microsoft.SerialConsole.json b/schemas/2018-05-01/Microsoft.SerialConsole.json new file mode 100644 index 0000000000..8c03a72db8 --- /dev/null +++ b/schemas/2018-05-01/Microsoft.SerialConsole.json @@ -0,0 +1,71 @@ +{ + "id": "https://schema.management.azure.com/schemas/2018-05-01/Microsoft.SerialConsole.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.SerialConsole", + "description": "Microsoft SerialConsole Resource Types", + "resourceDefinitions": {}, + "extension_resourceDefinitions": { + "serialPorts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-05-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the serial port to create." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SerialPortProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the serial port." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.SerialConsole/serialPorts" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.SerialConsole/serialPorts" + } + }, + "definitions": { + "SerialPortProperties": { + "type": "object", + "properties": { + "state": { + "oneOf": [ + { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies whether the port is enabled for a serial console connection." + } + }, + "description": "The properties of the serial port." + } + } +}