diff --git a/schemas/2024-06-01-preview/Microsoft.HybridOnboarding.json b/schemas/2024-06-01-preview/Microsoft.HybridOnboarding.json new file mode 100644 index 0000000000..e2157e70a5 --- /dev/null +++ b/schemas/2024-06-01-preview/Microsoft.HybridOnboarding.json @@ -0,0 +1,124 @@ +{ + "id": "https://schema.management.azure.com/schemas/2024-06-01-preview/Microsoft.HybridOnboarding.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.HybridOnboarding", + "description": "Microsoft HybridOnboarding Resource Types", + "resourceDefinitions": { + "extensionManagers": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2024-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Extension Manager resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ExtensionManagerProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of Extension Manager resource" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.HybridOnboarding/extensionManagers" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.HybridOnboarding/extensionManagers" + } + }, + "definitions": { + "ExtensionManagerProperties": { + "type": "object", + "properties": { + "extendedLocation": { + "type": "string", + "description": "ARM ID of the custom location resource deployed on the Onboarding Appliance" + }, + "scenarioProfile": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ScenarioObject" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Scenario profile of the extension manager resource" + } + }, + "required": [ + "extendedLocation" + ], + "description": "The properties of Extension Manager resource" + }, + "ScenarioObject": { + "type": "object", + "properties": { + "infrastructure": { + "type": "string", + "description": "Infra on which extension is deployed." + }, + "scenario": { + "type": "string", + "description": "Azure scenario enabled. Ex: Migrate" + } + }, + "required": [ + "infrastructure", + "scenario" + ], + "description": "Scenario object inside the scenario profile." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 2fb3951cbc..44304a99df 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -18664,6 +18664,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.HybridNetwork.json#/resourceDefinitions/sites" }, + { + "$ref": "https://schema.management.azure.com/schemas/2024-06-01-preview/Microsoft.HybridOnboarding.json#/resourceDefinitions/extensionManagers" + }, { "$ref": "https://schema.management.azure.com/schemas/2016-11-01/Microsoft.ImportExport.json#/resourceDefinitions/jobs" },