diff --git a/schemas/2022-02-22/Microsoft.Automation.json b/schemas/2022-02-22/Microsoft.Automation.json new file mode 100644 index 0000000000..22dcb6809d --- /dev/null +++ b/schemas/2022-02-22/Microsoft.Automation.json @@ -0,0 +1,76 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-02-22/Microsoft.Automation.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Automation", + "description": "Microsoft Automation Resource Types", + "resourceDefinitions": { + "automationAccounts_hybridRunbookWorkerGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-02-22" + ] + }, + "name": { + "type": "string", + "description": "The hybrid runbook worker group name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/HybridRunbookWorkerGroupCreateOrUpdateProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The hybrid runbook worker group properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups" + } + }, + "definitions": { + "HybridRunbookWorkerGroupCreateOrUpdateProperties": { + "type": "object", + "properties": { + "credential": { + "oneOf": [ + { + "$ref": "#/definitions/RunAsCredentialAssociationProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Definition of RunAs credential to use for hybrid worker." + } + }, + "description": "The hybrid runbook worker group properties." + }, + "RunAsCredentialAssociationProperty": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the credential." + } + }, + "description": "Definition of RunAs credential to use for hybrid worker." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 4752b89424..9de156b36c 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -2581,6 +2581,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-06-22/Microsoft.Automation.json#/resourceDefinitions/automationAccounts_hybridRunbookWorkerGroups_hybridRunbookWorkers" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-02-22/Microsoft.Automation.json#/resourceDefinitions/automationAccounts_hybridRunbookWorkerGroups" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-07-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts" },