diff --git a/schemas/2022-05-01/Microsoft.AzureStackHCI.json b/schemas/2022-05-01/Microsoft.AzureStackHCI.json new file mode 100644 index 0000000000..69590bb795 --- /dev/null +++ b/schemas/2022-05-01/Microsoft.AzureStackHCI.json @@ -0,0 +1,410 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-05-01/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": [ + "2022-05-01" + ] + }, + "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." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/clusters_arcSettings_childResource" + } + ] + } + }, + "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" + }, + "clusters_arcSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-05-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the proxy resource holding details of HCI ArcSetting information." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ArcSettingProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ArcSetting properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/clusters_arcSettings_extensions_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureStackHCI/clusters/arcSettings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings" + }, + "clusters_arcSettings_extensions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-05-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the machine extension." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ExtensionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status of Arc Extension for a particular node in HCI Cluster." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureStackHCI/clusters/arcSettings/extensions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions" + } + }, + "definitions": { + "ArcSettingProperties": { + "type": "object", + "properties": { + "arcApplicationClientId": { + "type": "string", + "description": "App id of arc AAD identity." + }, + "arcApplicationObjectId": { + "type": "string", + "description": "Object id of arc AAD identity." + }, + "arcApplicationTenantId": { + "type": "string", + "description": "Tenant id of arc AAD identity." + }, + "arcInstanceResourceGroup": { + "type": "string", + "description": "The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources." + }, + "arcServicePrincipalObjectId": { + "type": "string", + "description": "Object id of arc AAD service principal." + }, + "connectivityProperties": { + "type": "object", + "properties": {}, + "description": "contains connectivity related configuration for ARC resources" + } + }, + "description": "ArcSetting properties." + }, + "ClusterDesiredProperties": { + "type": "object", + "properties": { + "diagnosticLevel": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Off", + "Basic", + "Enhanced" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Desired level of diagnostic data emitted by the cluster." + }, + "windowsServerSubscription": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Desired state of Windows Server Subscription." + } + }, + "description": "Desired properties of the cluster." + }, + "ClusterProperties": { + "type": "object", + "properties": { + "aadApplicationObjectId": { + "type": "string", + "description": "Object id of cluster AAD identity." + }, + "aadClientId": { + "type": "string", + "description": "App id of cluster AAD identity." + }, + "aadServicePrincipalObjectId": { + "type": "string", + "description": "Id of cluster identity service principal." + }, + "aadTenantId": { + "type": "string", + "description": "Tenant id of cluster AAD identity." + }, + "cloudManagementEndpoint": { + "type": "string", + "description": "Endpoint configured for management from the Azure portal." + }, + "desiredProperties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterDesiredProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Desired properties of the cluster." + } + }, + "description": "Cluster properties." + }, + "clusters_arcSettings_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-05-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the proxy resource holding details of HCI ArcSetting information." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ArcSettingProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ArcSetting properties." + }, + "type": { + "type": "string", + "enum": [ + "arcSettings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings" + }, + "clusters_arcSettings_extensions_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-05-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the machine extension." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ExtensionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status of Arc Extension for a particular node in HCI Cluster." + }, + "type": { + "type": "string", + "enum": [ + "extensions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions" + }, + "ExtensionParameters": { + "type": "object", + "properties": { + "autoUpgradeMinorVersion": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "protectedSettings": { + "type": "object", + "properties": {}, + "description": "Protected settings (may contain secrets)." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "settings": { + "type": "object", + "properties": {}, + "description": "Json formatted public settings for the extension." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + } + }, + "description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute." + }, + "ExtensionProperties": { + "type": "object", + "properties": { + "extensionParameters": { + "oneOf": [ + { + "$ref": "#/definitions/ExtensionParameters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute." + } + }, + "description": "Status of Arc Extension for a particular node in HCI Cluster." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 5b2ab1d4b3..1e0a64fde1 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -2809,6 +2809,15 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-03-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters_arcSettings_extensions" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-05-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-05-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters_arcSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-05-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters_arcSettings_extensions" + }, { "$ref": "https://schema.management.azure.com/schemas/2015-12-01/Microsoft.Batch.json#/resourceDefinitions/batchAccounts" },