diff --git a/schemas/2021-09-01-preview/Microsoft.Dashboard.json b/schemas/2021-09-01-preview/Microsoft.Dashboard.json new file mode 100644 index 0000000000..fe537b85af --- /dev/null +++ b/schemas/2021-09-01-preview/Microsoft.Dashboard.json @@ -0,0 +1,242 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Dashboard.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Dashboard", + "description": "Microsoft Dashboard Resource Types", + "resourceDefinitions": { + "grafana": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-09-01-preview" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The managed identity of a resource." + }, + "location": { + "type": "string", + "description": "The geo-location where the grafana resource lives" + }, + "name": { + "type": "string", + "description": "The name of Azure Managed Workspace for Grafana." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/GrafanaResourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties specific to the grafana resource." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/ResourceSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "systemData": { + "oneOf": [ + { + "$ref": "#/definitions/SystemData" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The tags for grafana resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Dashboard/grafana" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Dashboard/grafana" + } + }, + "definitions": { + "GrafanaResourceProperties": { + "type": "object", + "properties": { + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "NotSpecified" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Provisioning state of the resource." + }, + "zoneRedundancy": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "Properties specific to the grafana resource." + }, + "ManagedIdentity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "SystemAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "userAssignedIdentities": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Dictionary of user assigned identities." + } + }, + "description": "The managed identity of a resource." + }, + "ResourceSku": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ] + }, + "SystemData": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "string" + }, + "createdByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time" + }, + "lastModifiedBy": { + "type": "string" + }, + "lastModifiedByType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + } + }, + "UserAssignedIdentity": { + "type": "object", + "properties": {} + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index c936982582..2f8fcbd095 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -4720,6 +4720,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.CustomProviders.json#/resourceDefinitions/resourceProviders" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Dashboard.json#/resourceDefinitions/grafana" + }, { "$ref": "https://schema.management.azure.com/schemas/2018-01-01/Microsoft.DataBox.json#/resourceDefinitions/jobs" },