diff --git a/schemas/2020-03-01-preview/Microsoft.AzureStackHCI.json b/schemas/2020-03-01-preview/Microsoft.AzureStackHCI.json new file mode 100644 index 0000000000..d21e4e5c4a --- /dev/null +++ b/schemas/2020-03-01-preview/Microsoft.AzureStackHCI.json @@ -0,0 +1,103 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-03-01-preview/Microsoft.AzureStackHCI.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AzureStackHCI", + "description": "Microsoft AzureStackHCI Resource Types", + "resourceDefinitions": { + "clusters": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-03-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the cluster." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Cluster properties." + }, + "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.AzureStackHCI/clusters" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters" + } + }, + "definitions": { + "ClusterProperties": { + "type": "object", + "properties": { + "aadClientId": { + "type": "string", + "description": "App id of cluster AAD identity." + }, + "aadTenantId": { + "type": "string", + "description": "Tenant id of cluster AAD identity." + }, + "reportedProperties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterReportedProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties reported by cluster agent." + } + }, + "required": [ + "aadClientId", + "aadTenantId" + ], + "description": "Cluster properties." + }, + "ClusterReportedProperties": { + "type": "object", + "properties": {}, + "description": "Properties reported by cluster agent." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index cd5b1cf8d6..dc7ad7f0dc 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -1099,6 +1099,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2017-06-01/Microsoft.AzureStack.json#/resourceDefinitions/registrations_customerSubscriptions" }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-03-01-preview/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters" + }, { "$ref": "https://schema.management.azure.com/schemas/2015-12-01/Microsoft.Batch.json#/resourceDefinitions/batchAccounts" },