From 99aba13f1041b1601d3d9c14f8b4b63a6d798f69 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 27 Nov 2020 03:16:41 +0000 Subject: [PATCH] CodeGen from PR 11826 in Azure/azure-rest-api-specs Fix errors in various of readme files encountered in the recent go SDK release (#11826) * Fix an issue on windows * Fix cdn * Fix cognitiveservices/customVision * Fix cognitiveservices/personalizer * Fix cognitiveservices/translatorText * Fix data plane digitaltwins * Remove problematic tag from release - no impact on sdk, this has never been released * amend Fix cognitiveservices/translatorText * Fix imds * Fix migrate readme that are mistakenly damaged in #10305 * add one api-version back * Fix digtaltwins data plane again * Fix hybridnetwork * Fix streamanlytics * Revert some changes of digitaltwins * Revert imds * Fix migrate * Fix migrate again --- schemas/2015-04-01/microsoft.insights.json | 697 ++++++++++ schemas/2015-06-01/Microsoft.Cdn.json | 2 +- schemas/2015-07-01/microsoft.insights.json | 222 ++++ .../2016-03-01/Microsoft.StreamAnalytics.json | 2 +- schemas/2016-03-01/microsoft.insights.json | 662 ++++++++++ schemas/2016-04-02/Microsoft.Cdn.json | 2 +- schemas/2016-09-01/microsoft.insights.json | 227 ++++ schemas/2016-10-02/Microsoft.Cdn.json | 2 +- .../microsoft.insights.json | 221 ++++ .../Microsoft.StreamAnalytics.json | 2 +- schemas/2017-04-01/microsoft.insights.json | 544 ++++++++ schemas/2017-04-02/Microsoft.Cdn.json | 2 +- .../microsoft.insights.json | 325 +++++ schemas/2017-10-12/Microsoft.Cdn.json | 2 +- schemas/2018-02-02/Microsoft.Migrate.json | 2 +- schemas/2018-03-01/Microsoft.Insights.json | 84 +- schemas/2018-04-16/microsoft.insights.json | 517 ++++++++ .../microsoft.insights.json | 383 ++++++ schemas/2018-09-01/microsoft.insights.json | 481 +++++++ schemas/2019-03-01/microsoft.insights.json | 553 ++++++++ schemas/2019-04-15/Microsoft.Cdn.json | 2 +- schemas/2019-06-01/microsoft.insights.json | 577 +++++++++ schemas/2019-06-15-preview/Microsoft.Cdn.json | 2 +- schemas/2019-06-15/Microsoft.Cdn.json | 2 +- .../Microsoft.AzureData.json | 2 +- schemas/2019-10-01/Microsoft.Migrate.json | 2 +- .../microsoft.insights.json | 179 --- .../Microsoft.Insights.json | 2 +- schemas/2019-12-31/Microsoft.Cdn.json | 2 +- .../Microsoft.HybridNetwork.json | 1145 +++++++++++++++++ .../microsoft.insights.json | 119 ++ schemas/2020-01-01/Microsoft.OffAzure.json | 2 +- .../Microsoft.StreamAnalytics.json | 2 +- schemas/2020-04-15/Microsoft.Cdn.json | 2 +- .../Microsoft.Insights.json | 382 ++++++ schemas/2020-07-07/Microsoft.OffAzure.json | 2 +- .../Microsoft.AzureData.json | 2 +- 37 files changed, 7136 insertions(+), 222 deletions(-) create mode 100644 schemas/2015-04-01/microsoft.insights.json create mode 100644 schemas/2015-07-01/microsoft.insights.json create mode 100644 schemas/2016-03-01/microsoft.insights.json create mode 100644 schemas/2016-09-01/microsoft.insights.json create mode 100644 schemas/2017-03-01-preview/microsoft.insights.json create mode 100644 schemas/2017-04-01/microsoft.insights.json create mode 100644 schemas/2017-05-01-preview/microsoft.insights.json create mode 100644 schemas/2018-04-16/microsoft.insights.json create mode 100644 schemas/2018-06-01-preview/microsoft.insights.json create mode 100644 schemas/2018-09-01/microsoft.insights.json create mode 100644 schemas/2019-03-01/microsoft.insights.json create mode 100644 schemas/2019-06-01/microsoft.insights.json create mode 100644 schemas/2020-01-01-preview/Microsoft.HybridNetwork.json create mode 100644 schemas/2020-01-01-preview/microsoft.insights.json create mode 100644 schemas/2020-05-01-preview/Microsoft.Insights.json diff --git a/schemas/2015-04-01/microsoft.insights.json b/schemas/2015-04-01/microsoft.insights.json new file mode 100644 index 0000000000..7583ddb04b --- /dev/null +++ b/schemas/2015-04-01/microsoft.insights.json @@ -0,0 +1,697 @@ +{ + "id": "https://schema.management.azure.com/schemas/2015-04-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "autoscalesettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-04-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The autoscale setting name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AutoscaleSetting" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A setting that contains all of the configuration for the automatic scaling of a 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.insights/autoscalesettings" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/autoscalesettings" + } + }, + "definitions": { + "AutoscaleNotification": { + "type": "object", + "properties": { + "email": { + "oneOf": [ + { + "$ref": "#/definitions/EmailNotification" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Email notification of an autoscale event." + }, + "operation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Scale" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the operation associated with the notification and its value must be \"scale\"" + }, + "webhooks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookNotification" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of webhook notifications." + } + }, + "required": [ + "operation" + ], + "description": "Autoscale notification." + }, + "AutoscaleProfile": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "$ref": "#/definitions/ScaleCapacity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of instances that can be used during this profile." + }, + "fixedDate": { + "oneOf": [ + { + "$ref": "#/definitions/TimeWindow" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A specific date-time for the profile." + }, + "name": { + "type": "string", + "description": "the name of the profile." + }, + "recurrence": { + "oneOf": [ + { + "$ref": "#/definitions/Recurrence" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The repeating times at which this profile begins. This element is not used if the FixedDate element is used." + }, + "rules": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRule" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified." + } + }, + "required": [ + "capacity", + "name", + "rules" + ], + "description": "Autoscale profile." + }, + "AutoscaleSetting": { + "type": "object", + "properties": { + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'." + }, + "name": { + "type": "string", + "description": "the name of the autoscale setting." + }, + "notifications": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutoscaleNotification" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of notifications." + }, + "profiles": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutoscaleProfile" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified." + }, + "targetResourceUri": { + "type": "string", + "description": "the resource identifier of the resource that the autoscale setting should be added to." + } + }, + "required": [ + "profiles" + ], + "description": "A setting that contains all of the configuration for the automatic scaling of a resource." + }, + "EmailNotification": { + "type": "object", + "properties": { + "customEmails": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored." + }, + "sendToSubscriptionAdministrator": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether to send email to subscription administrator." + }, + "sendToSubscriptionCoAdministrators": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether to send email to subscription co-administrators." + } + }, + "description": "Email notification of an autoscale event." + }, + "MetricTrigger": { + "type": "object", + "properties": { + "dimensions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleMetricDimension" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of dimension conditions. For example: [{\"DimensionName\":\"AppName\",\"Operator\":\"Equals\",\"Values\":[\"App1\"]},{\"DimensionName\":\"Deployment\",\"Operator\":\"Equals\",\"Values\":[\"default\"]}]." + }, + "metricName": { + "type": "string", + "description": "the name of the metric that defines what the rule monitors." + }, + "metricNamespace": { + "type": "string", + "description": "the namespace of the metric that defines what the rule monitors." + }, + "metricResourceUri": { + "type": "string", + "description": "the resource identifier of the resource the rule monitors." + }, + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Equals", + "NotEquals", + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the operator that is used to compare the metric data and the threshold." + }, + "statistic": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Average", + "Min", + "Max", + "Sum" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the metric statistic type. How the metrics from multiple instances are combined." + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the threshold of the metric that triggers the scale action." + }, + "timeAggregation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Average", + "Minimum", + "Maximum", + "Total", + "Count", + "Last" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "time aggregation type. How the data that is collected should be combined over time. The default value is Average." + }, + "timeGrain": { + "type": "string", + "format": "duration", + "description": "the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute." + }, + "timeWindow": { + "type": "string", + "format": "duration", + "description": "the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes." + } + }, + "required": [ + "metricName", + "metricResourceUri", + "operator", + "statistic", + "threshold", + "timeAggregation", + "timeGrain", + "timeWindow" + ], + "description": "The trigger that results in a scaling action." + }, + "Recurrence": { + "type": "object", + "properties": { + "frequency": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Second", + "Minute", + "Hour", + "Day", + "Week", + "Month", + "Year" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly." + }, + "schedule": { + "oneOf": [ + { + "$ref": "#/definitions/RecurrentSchedule" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The scheduling constraints for when the profile begins." + } + }, + "required": [ + "frequency", + "schedule" + ], + "description": "The repeating times at which this profile begins. This element is not used if the FixedDate element is used." + }, + "RecurrentSchedule": { + "type": "object", + "properties": { + "days": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of days that the profile takes effect on. Possible values are Sunday through Saturday." + }, + "hours": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "integer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported)." + }, + "minutes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "integer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of minutes at which the profile takes effect at." + }, + "timeZone": { + "type": "string", + "description": "the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time" + } + }, + "required": [ + "days", + "hours", + "minutes", + "timeZone" + ], + "description": "The scheduling constraints for when the profile begins." + }, + "ScaleAction": { + "type": "object", + "properties": { + "cooldown": { + "type": "string", + "format": "duration", + "description": "the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format." + }, + "direction": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Increase", + "Decrease" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the scale direction. Whether the scaling action increases or decreases the number of instances." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ChangeCount", + "PercentChangeCount", + "ExactCount" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the type of action that should occur when the scale rule fires." + }, + "value": { + "type": "string", + "default": "1", + "description": "the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1." + } + }, + "required": [ + "cooldown", + "direction", + "type" + ], + "description": "The parameters for the scaling action." + }, + "ScaleCapacity": { + "type": "object", + "properties": { + "default": { + "type": "string", + "description": "the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default." + }, + "maximum": { + "type": "string", + "description": "the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription." + }, + "minimum": { + "type": "string", + "description": "the minimum number of instances for the resource." + } + }, + "required": [ + "default", + "maximum", + "minimum" + ], + "description": "The number of instances that can be used during this profile." + }, + "ScaleRule": { + "type": "object", + "properties": { + "metricTrigger": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTrigger" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The trigger that results in a scaling action." + }, + "scaleAction": { + "oneOf": [ + { + "$ref": "#/definitions/ScaleAction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The parameters for the scaling action." + } + }, + "required": [ + "metricTrigger", + "scaleAction" + ], + "description": "A rule that provide the triggers and parameters for the scaling action." + }, + "ScaleRuleMetricDimension": { + "type": "object", + "properties": { + "DimensionName": { + "type": "string", + "description": "Name of the dimension." + }, + "Operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Equals", + "NotEquals" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values." + }, + "Values": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "list of dimension values. For example: [\"App1\",\"App2\"]." + } + }, + "required": [ + "DimensionName", + "Operator", + "Values" + ], + "description": "Specifies an auto scale rule metric dimension." + }, + "TimeWindow": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time", + "description": "the end time for the profile in ISO 8601 format." + }, + "start": { + "type": "string", + "format": "date-time", + "description": "the start time for the profile in ISO 8601 format." + }, + "timeZone": { + "type": "string", + "description": "the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time" + } + }, + "required": [ + "end", + "start" + ], + "description": "A specific date-time for the profile." + }, + "WebhookNotification": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a property bag of settings. This value can be empty." + }, + "serviceUri": { + "type": "string", + "description": "the service address to receive the notification." + } + }, + "description": "Webhook notification of an autoscale event." + } + } +} diff --git a/schemas/2015-06-01/Microsoft.Cdn.json b/schemas/2015-06-01/Microsoft.Cdn.json index f4c32538eb..4800bb72d2 100644 --- a/schemas/2015-06-01/Microsoft.Cdn.json +++ b/schemas/2015-06-01/Microsoft.Cdn.json @@ -595,4 +595,4 @@ "description": "The SKU (pricing tier) of the CDN profile." } } -} \ No newline at end of file +} diff --git a/schemas/2015-07-01/microsoft.insights.json b/schemas/2015-07-01/microsoft.insights.json new file mode 100644 index 0000000000..a02ae16d65 --- /dev/null +++ b/schemas/2015-07-01/microsoft.insights.json @@ -0,0 +1,222 @@ +{ + "id": "https://schema.management.azure.com/schemas/2015-07-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": {}, + "unknown_resourceDefinitions": { + "diagnosticSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-07-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "enum": [ + "service" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServiceDiagnosticSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The diagnostic settings for service." + }, + "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.insights/diagnosticSettings" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/diagnosticSettings" + } + }, + "definitions": { + "LogSettings": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this log is enabled." + }, + "retentionPolicy": { + "oneOf": [ + { + "$ref": "#/definitions/RetentionPolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the retention policy for the log." + } + }, + "required": [ + "enabled" + ], + "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log." + }, + "MetricSettings": { + "type": "object", + "properties": { + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this timegrain is enabled." + }, + "retentionPolicy": { + "oneOf": [ + { + "$ref": "#/definitions/RetentionPolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the retention policy for the log." + }, + "timeGrain": { + "type": "string", + "format": "duration", + "description": "the timegrain of the metric in ISO8601 format." + } + }, + "required": [ + "enabled", + "timeGrain" + ], + "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric." + }, + "RetentionPolicy": { + "type": "object", + "properties": { + "days": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether the retention policy is enabled." + } + }, + "required": [ + "days", + "enabled" + ], + "description": "Specifies the retention policy for the log." + }, + "ServiceDiagnosticSettings": { + "type": "object", + "properties": { + "logs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LogSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the list of logs settings." + }, + "metrics": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the list of metric settings." + }, + "serviceBusRuleId": { + "type": "string", + "description": "The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming Diagnostic Logs. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'." + }, + "storageAccountId": { + "type": "string", + "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs." + }, + "workspaceId": { + "type": "string", + "description": "The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" + } + }, + "description": "The diagnostic settings for service." + } + } +} diff --git a/schemas/2016-03-01/Microsoft.StreamAnalytics.json b/schemas/2016-03-01/Microsoft.StreamAnalytics.json index 85cb7e8d27..bdcb75e72e 100644 --- a/schemas/2016-03-01/Microsoft.StreamAnalytics.json +++ b/schemas/2016-03-01/Microsoft.StreamAnalytics.json @@ -2091,4 +2091,4 @@ "description": "The properties that are associated with a transformation." } } -} \ No newline at end of file +} diff --git a/schemas/2016-03-01/microsoft.insights.json b/schemas/2016-03-01/microsoft.insights.json new file mode 100644 index 0000000000..74f9daea5d --- /dev/null +++ b/schemas/2016-03-01/microsoft.insights.json @@ -0,0 +1,662 @@ +{ + "id": "https://schema.management.azure.com/schemas/2016-03-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "alertrules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2016-03-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the rule." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AlertRule" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An alert rule." + }, + "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.insights/alertrules" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/alertrules" + } + }, + "subscription_resourceDefinitions": { + "logprofiles": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2016-03-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the log profile." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LogProfileProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The log profile 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.insights/logprofiles" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/logprofiles" + } + }, + "definitions": { + "AlertRule": { + "type": "object", + "properties": { + "actions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/RuleAction" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved." + }, + "condition": { + "oneOf": [ + { + "$ref": "#/definitions/RuleCondition" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The condition that results in the alert rule being activated." + }, + "description": { + "type": "string", + "description": "the description of the alert rule that will be included in the alert email." + }, + "isEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the flag that indicates whether the alert rule is enabled." + }, + "name": { + "type": "string", + "description": "the name of the alert rule." + } + }, + "required": [ + "condition", + "isEnabled", + "name" + ], + "description": "An alert rule." + }, + "LocationThresholdRuleCondition": { + "type": "object", + "properties": { + "failedLocationCount": { + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the number of locations that must fail to activate the alert." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition" + ] + }, + "windowSize": { + "type": "string", + "format": "duration", + "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day." + } + }, + "required": [ + "failedLocationCount", + "odata.type" + ], + "description": "A rule condition based on a certain number of locations failing." + }, + "LogProfileProperties": { + "type": "object", + "properties": { + "categories": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'" + }, + "locations": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location." + }, + "retentionPolicy": { + "oneOf": [ + { + "$ref": "#/definitions/RetentionPolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the retention policy for the log." + }, + "serviceBusRuleId": { + "type": "string", + "description": "The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'." + }, + "storageAccountId": { + "type": "string", + "description": "the resource id of the storage account to which you would like to send the Activity Log." + } + }, + "required": [ + "categories", + "locations", + "retentionPolicy" + ], + "description": "The log profile properties." + }, + "ManagementEventAggregationCondition": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the condition operator." + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The threshold value that activates the alert." + }, + "windowSize": { + "type": "string", + "format": "duration", + "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day." + } + }, + "description": "How the data that is collected should be combined over time." + }, + "ManagementEventRuleCondition": { + "type": "object", + "properties": { + "aggregation": { + "oneOf": [ + { + "$ref": "#/definitions/ManagementEventAggregationCondition" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "How the data that is collected should be combined over time." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition" + ] + } + }, + "required": [ + "odata.type" + ], + "description": "A management event rule condition." + }, + "RetentionPolicy": { + "type": "object", + "properties": { + "days": { + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether the retention policy is enabled." + } + }, + "required": [ + "days", + "enabled" + ], + "description": "Specifies the retention policy for the log." + }, + "RuleAction": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/RuleEmailAction" + }, + { + "$ref": "#/definitions/RuleWebhookAction" + } + ], + "properties": {}, + "description": "The action that is performed when the alert rule becomes active, and when an alert condition is resolved." + }, + "RuleCondition": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ThresholdRuleCondition" + }, + { + "$ref": "#/definitions/LocationThresholdRuleCondition" + }, + { + "$ref": "#/definitions/ManagementEventRuleCondition" + } + ], + "properties": { + "dataSource": { + "oneOf": [ + { + "$ref": "#/definitions/RuleDataSource" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource from which the rule collects its data." + } + }, + "description": "The condition that results in the alert rule being activated." + }, + "RuleDataSource": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/RuleMetricDataSource" + }, + { + "$ref": "#/definitions/RuleManagementEventDataSource" + } + ], + "properties": { + "resourceUri": { + "type": "string", + "description": "the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule." + } + }, + "description": "The resource from which the rule collects its data." + }, + "RuleEmailAction": { + "type": "object", + "properties": { + "customEmails": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the list of administrator's custom email addresses to notify of the activation of the alert." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.RuleEmailAction" + ] + }, + "sendToServiceOwners": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated." + } + }, + "required": [ + "odata.type" + ], + "description": "Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case." + }, + "RuleManagementEventClaimsDataSource": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "the email address." + } + }, + "description": "The claims for a rule management event data source." + }, + "RuleManagementEventDataSource": { + "type": "object", + "properties": { + "claims": { + "oneOf": [ + { + "$ref": "#/definitions/RuleManagementEventClaimsDataSource" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The claims for a rule management event data source." + }, + "eventName": { + "type": "string", + "description": "the event name." + }, + "eventSource": { + "type": "string", + "description": "the event source." + }, + "level": { + "type": "string", + "description": "the level." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource" + ] + }, + "operationName": { + "type": "string", + "description": "The name of the operation that should be checked for. If no name is provided, any operation will match." + }, + "resourceGroupName": { + "type": "string", + "description": "the resource group name." + }, + "resourceProviderName": { + "type": "string", + "description": "the resource provider name." + }, + "status": { + "type": "string", + "description": "The status of the operation that should be checked for. If no status is provided, any status will match." + }, + "subStatus": { + "type": "string", + "description": "the substatus." + } + }, + "required": [ + "odata.type" + ], + "description": "A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case." + }, + "RuleMetricDataSource": { + "type": "object", + "properties": { + "metricName": { + "type": "string", + "description": "the name of the metric that defines what the rule monitors." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource" + ] + } + }, + "required": [ + "odata.type" + ], + "description": "A rule metric data source. The discriminator value is always RuleMetricDataSource in this case." + }, + "RuleWebhookAction": { + "type": "object", + "properties": { + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction" + ] + }, + "properties": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." + }, + "serviceUri": { + "type": "string", + "description": "the service uri to Post the notification when the alert activates or resolves." + } + }, + "required": [ + "odata.type" + ], + "description": "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case." + }, + "ThresholdRuleCondition": { + "type": "object", + "properties": { + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition" + ] + }, + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the operator used to compare the data and the threshold." + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the threshold value that activates the alert." + }, + "timeAggregation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Average", + "Minimum", + "Maximum", + "Total", + "Last" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric." + }, + "windowSize": { + "type": "string", + "format": "duration", + "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day." + } + }, + "required": [ + "odata.type", + "operator", + "threshold" + ], + "description": "A rule condition based on a metric crossing a threshold." + } + } +} diff --git a/schemas/2016-04-02/Microsoft.Cdn.json b/schemas/2016-04-02/Microsoft.Cdn.json index 00812e7cd3..53daac8471 100644 --- a/schemas/2016-04-02/Microsoft.Cdn.json +++ b/schemas/2016-04-02/Microsoft.Cdn.json @@ -579,4 +579,4 @@ "description": "The SKU (pricing tier) of the CDN profile." } } -} \ No newline at end of file +} diff --git a/schemas/2016-09-01/microsoft.insights.json b/schemas/2016-09-01/microsoft.insights.json new file mode 100644 index 0000000000..6329c014a5 --- /dev/null +++ b/schemas/2016-09-01/microsoft.insights.json @@ -0,0 +1,227 @@ +{ + "id": "https://schema.management.azure.com/schemas/2016-09-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": {}, + "unknown_resourceDefinitions": { + "diagnosticSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2016-09-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "enum": [ + "service" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServiceDiagnosticSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The diagnostic settings for service." + }, + "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.insights/diagnosticSettings" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/diagnosticSettings" + } + }, + "definitions": { + "LogSettings": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this log is enabled." + }, + "retentionPolicy": { + "oneOf": [ + { + "$ref": "#/definitions/RetentionPolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the retention policy for the log." + } + }, + "required": [ + "enabled" + ], + "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log." + }, + "MetricSettings": { + "type": "object", + "properties": { + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this timegrain is enabled." + }, + "retentionPolicy": { + "oneOf": [ + { + "$ref": "#/definitions/RetentionPolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the retention policy for the log." + }, + "timeGrain": { + "type": "string", + "format": "duration", + "description": "the timegrain of the metric in ISO8601 format." + } + }, + "required": [ + "enabled", + "timeGrain" + ], + "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric." + }, + "RetentionPolicy": { + "type": "object", + "properties": { + "days": { + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether the retention policy is enabled." + } + }, + "required": [ + "days", + "enabled" + ], + "description": "Specifies the retention policy for the log." + }, + "ServiceDiagnosticSettings": { + "type": "object", + "properties": { + "eventHubAuthorizationRuleId": { + "type": "string", + "description": "The resource Id for the event hub namespace authorization rule." + }, + "logs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LogSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the list of logs settings." + }, + "metrics": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the list of metric settings." + }, + "serviceBusRuleId": { + "type": "string", + "description": "The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming Diagnostic Logs. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'." + }, + "storageAccountId": { + "type": "string", + "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs." + }, + "workspaceId": { + "type": "string", + "description": "The workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" + } + }, + "description": "The diagnostic settings for service." + } + } +} diff --git a/schemas/2016-10-02/Microsoft.Cdn.json b/schemas/2016-10-02/Microsoft.Cdn.json index 68a4b32132..e08aae6d85 100644 --- a/schemas/2016-10-02/Microsoft.Cdn.json +++ b/schemas/2016-10-02/Microsoft.Cdn.json @@ -570,4 +570,4 @@ "description": "The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile." } } -} \ No newline at end of file +} diff --git a/schemas/2017-03-01-preview/microsoft.insights.json b/schemas/2017-03-01-preview/microsoft.insights.json new file mode 100644 index 0000000000..eb4b006241 --- /dev/null +++ b/schemas/2017-03-01-preview/microsoft.insights.json @@ -0,0 +1,221 @@ +{ + "id": "https://schema.management.azure.com/schemas/2017-03-01-preview/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "activityLogAlerts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-03-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the activity log alert." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ActivityLogAlert" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Azure activity log alert." + }, + "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.insights/activityLogAlerts" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/activityLogAlerts" + } + }, + "definitions": { + "ActivityLogAlert": { + "type": "object", + "properties": { + "actions": { + "oneOf": [ + { + "$ref": "#/definitions/ActivityLogAlertActionList" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of activity log alert actions." + }, + "condition": { + "oneOf": [ + { + "$ref": "#/definitions/ActivityLogAlertAllOfCondition" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Activity Log alert condition that is met when all its member conditions are met." + }, + "description": { + "type": "string", + "description": "A description of this activity log alert." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." + }, + "scopes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item." + } + }, + "required": [ + "actions", + "condition", + "scopes" + ], + "description": "An Azure activity log alert." + }, + "ActivityLogAlertActionGroup": { + "type": "object", + "properties": { + "actionGroupId": { + "type": "string", + "description": "The resourceId of the action group. This cannot be null or empty." + }, + "webhookProperties": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." + } + }, + "required": [ + "actionGroupId" + ], + "description": "A pointer to an Azure Action Group." + }, + "ActivityLogAlertActionList": { + "type": "object", + "properties": { + "actionGroups": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertActionGroup" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of activity log alerts." + } + }, + "description": "A list of activity log alert actions." + }, + "ActivityLogAlertAllOfCondition": { + "type": "object", + "properties": { + "allOf": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertLeafCondition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of activity log alert conditions." + } + }, + "required": [ + "allOf" + ], + "description": "An Activity Log alert condition that is met when all its member conditions are met." + }, + "ActivityLogAlertLeafCondition": { + "type": "object", + "properties": { + "equals": { + "type": "string", + "description": "The field value will be compared to this value (case-insensitive) to determine if the condition is met." + }, + "field": { + "type": "string", + "description": "The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'." + } + }, + "required": [ + "equals", + "field" + ], + "description": "An Activity Log alert condition that is met by comparing an activity log field and value." + } + } +} diff --git a/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json b/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json index 11fea0f74e..f52e931c8d 100644 --- a/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json +++ b/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json @@ -3001,4 +3001,4 @@ "description": "The properties that are associated with a transformation." } } -} \ No newline at end of file +} diff --git a/schemas/2017-04-01/microsoft.insights.json b/schemas/2017-04-01/microsoft.insights.json new file mode 100644 index 0000000000..6cf5063990 --- /dev/null +++ b/schemas/2017-04-01/microsoft.insights.json @@ -0,0 +1,544 @@ +{ + "id": "https://schema.management.azure.com/schemas/2017-04-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "actionGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-04-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the action group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ActionGroup" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Azure action group." + }, + "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.insights/actionGroups" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/actionGroups" + }, + "activityLogAlerts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-04-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the activity log alert." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ActivityLogAlert" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Azure activity log alert." + }, + "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.insights/activityLogAlerts" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/activityLogAlerts" + } + }, + "definitions": { + "ActionGroup": { + "type": "object", + "properties": { + "automationRunbookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "emailReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of email receivers that are part of this action group." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." + }, + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." + }, + "itsmReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of ITSM receivers that are part of this action group." + }, + "smsReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of SMS receivers that are part of this action group." + }, + "webhookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of webhook receivers that are part of this action group." + } + }, + "required": [ + "enabled", + "groupShortName" + ], + "description": "An Azure action group." + }, + "ActivityLogAlert": { + "type": "object", + "properties": { + "actions": { + "oneOf": [ + { + "$ref": "#/definitions/ActivityLogAlertActionList" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of activity log alert actions." + }, + "condition": { + "oneOf": [ + { + "$ref": "#/definitions/ActivityLogAlertAllOfCondition" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Activity Log alert condition that is met when all its member conditions are met." + }, + "description": { + "type": "string", + "description": "A description of this activity log alert." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated." + }, + "scopes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item." + } + }, + "required": [ + "actions", + "condition", + "scopes" + ], + "description": "An Azure activity log alert." + }, + "ActivityLogAlertActionGroup": { + "type": "object", + "properties": { + "actionGroupId": { + "type": "string", + "description": "The resourceId of the action group. This cannot be null or empty." + }, + "webhookProperties": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." + } + }, + "required": [ + "actionGroupId" + ], + "description": "A pointer to an Azure Action Group." + }, + "ActivityLogAlertActionList": { + "type": "object", + "properties": { + "actionGroups": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertActionGroup" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of activity log alerts." + } + }, + "description": "A list of activity log alert actions." + }, + "ActivityLogAlertAllOfCondition": { + "type": "object", + "properties": { + "allOf": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityLogAlertLeafCondition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of activity log alert conditions." + } + }, + "required": [ + "allOf" + ], + "description": "An Activity Log alert condition that is met when all its member conditions are met." + }, + "ActivityLogAlertLeafCondition": { + "type": "object", + "properties": { + "equals": { + "type": "string", + "description": "The field value will be compared to this value (case-insensitive) to determine if the condition is met." + }, + "field": { + "type": "string", + "description": "The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'." + } + }, + "required": [ + "equals", + "field" + ], + "description": "An Activity Log alert condition that is met by comparing an activity log field and value." + }, + "AutomationRunbookReceiver": { + "type": "object", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "isGlobalRunbook": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + } + }, + "required": [ + "automationAccountId", + "isGlobalRunbook", + "runbookName", + "webhookResourceId" + ], + "description": "The Azure Automation Runbook notification receiver." + }, + "AzureAppPushReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + }, + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + } + }, + "required": [ + "emailAddress", + "name" + ], + "description": "The Azure mobile App push notification receiver." + }, + "EmailReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + } + }, + "required": [ + "emailAddress", + "name" + ], + "description": "An email receiver." + }, + "ItsmReceiver": { + "type": "object", + "properties": { + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + } + }, + "required": [ + "connectionId", + "name", + "region", + "ticketConfiguration", + "workspaceId" + ], + "description": "An Itsm receiver." + }, + "SmsReceiver": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + } + }, + "required": [ + "countryCode", + "name", + "phoneNumber" + ], + "description": "An SMS receiver." + }, + "WebhookReceiver": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + } + }, + "required": [ + "name", + "serviceUri" + ], + "description": "A webhook receiver." + } + } +} diff --git a/schemas/2017-04-02/Microsoft.Cdn.json b/schemas/2017-04-02/Microsoft.Cdn.json index 2e5da6495d..6982309740 100644 --- a/schemas/2017-04-02/Microsoft.Cdn.json +++ b/schemas/2017-04-02/Microsoft.Cdn.json @@ -574,4 +574,4 @@ "description": "The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile." } } -} \ No newline at end of file +} diff --git a/schemas/2017-05-01-preview/microsoft.insights.json b/schemas/2017-05-01-preview/microsoft.insights.json new file mode 100644 index 0000000000..6d2f67ff80 --- /dev/null +++ b/schemas/2017-05-01-preview/microsoft.insights.json @@ -0,0 +1,325 @@ +{ + "id": "https://schema.management.azure.com/schemas/2017-05-01-preview/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": {}, + "subscription_resourceDefinitions": { + "diagnosticSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-05-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Location of the resource" + }, + "name": { + "type": "string", + "description": "The name of the diagnostic setting." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SubscriptionDiagnosticSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The subscription diagnostic settings." + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/diagnosticSettings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/diagnosticSettings" + } + }, + "unknown_resourceDefinitions": { + "diagnosticSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-05-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the diagnostic setting." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DiagnosticSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The diagnostic settings." + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/diagnosticSettings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/diagnosticSettings" + } + }, + "definitions": { + "DiagnosticSettings": { + "type": "object", + "properties": { + "eventHubAuthorizationRuleId": { + "type": "string", + "description": "The resource Id for the event hub authorization rule." + }, + "eventHubName": { + "type": "string", + "description": "The name of the event hub. If none is specified, the default event hub will be selected." + }, + "logAnalyticsDestinationType": { + "type": "string", + "description": "A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: _. Possible values are: Dedicated and null (null is default.)" + }, + "logs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LogSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of logs settings." + }, + "metrics": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of metric settings." + }, + "serviceBusRuleId": { + "type": "string", + "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility." + }, + "storageAccountId": { + "type": "string", + "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs." + }, + "workspaceId": { + "type": "string", + "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" + } + }, + "description": "The diagnostic settings." + }, + "LogSettings": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this log is enabled." + }, + "retentionPolicy": { + "oneOf": [ + { + "$ref": "#/definitions/RetentionPolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the retention policy for the log." + } + }, + "required": [ + "enabled" + ], + "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log." + }, + "MetricSettings": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this category is enabled." + }, + "retentionPolicy": { + "oneOf": [ + { + "$ref": "#/definitions/RetentionPolicy" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the retention policy for the log." + }, + "timeGrain": { + "type": "string", + "format": "duration", + "description": "the timegrain of the metric in ISO8601 format." + } + }, + "required": [ + "enabled" + ], + "description": "Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric." + }, + "RetentionPolicy": { + "type": "object", + "properties": { + "days": { + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the number of days for the retention in days. A value of 0 will retain the events indefinitely." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether the retention policy is enabled." + } + }, + "required": [ + "days", + "enabled" + ], + "description": "Specifies the retention policy for the log." + }, + "SubscriptionDiagnosticSettings": { + "type": "object", + "properties": { + "eventHubAuthorizationRuleId": { + "type": "string", + "description": "The resource Id for the event hub authorization rule." + }, + "eventHubName": { + "type": "string", + "description": "The name of the event hub. If none is specified, the default event hub will be selected." + }, + "logs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SubscriptionLogSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of logs settings." + }, + "serviceBusRuleId": { + "type": "string", + "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility." + }, + "storageAccountId": { + "type": "string", + "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs." + }, + "workspaceId": { + "type": "string", + "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" + } + }, + "description": "The subscription diagnostic settings." + }, + "SubscriptionLogSettings": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Name of a Subscription Diagnostic Log category for a resource type this setting is applied to." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this log is enabled." + } + }, + "required": [ + "enabled" + ], + "description": "Part of Subscription diagnostic setting. Specifies the settings for a particular log." + } + } +} diff --git a/schemas/2017-10-12/Microsoft.Cdn.json b/schemas/2017-10-12/Microsoft.Cdn.json index c36b95bab6..f5c65cddd0 100644 --- a/schemas/2017-10-12/Microsoft.Cdn.json +++ b/schemas/2017-10-12/Microsoft.Cdn.json @@ -905,4 +905,4 @@ "description": "Defines the parameters for the URL path condition." } } -} \ No newline at end of file +} diff --git a/schemas/2018-02-02/Microsoft.Migrate.json b/schemas/2018-02-02/Microsoft.Migrate.json index 690ba2f959..21a92b368c 100644 --- a/schemas/2018-02-02/Microsoft.Migrate.json +++ b/schemas/2018-02-02/Microsoft.Migrate.json @@ -596,4 +596,4 @@ "description": "Microsoft.Migrate/projects/groups" } } -} \ No newline at end of file +} diff --git a/schemas/2018-03-01/Microsoft.Insights.json b/schemas/2018-03-01/Microsoft.Insights.json index 5ff42bddeb..4f25d96c85 100644 --- a/schemas/2018-03-01/Microsoft.Insights.json +++ b/schemas/2018-03-01/Microsoft.Insights.json @@ -50,7 +50,7 @@ "type": { "type": "string", "enum": [ - "Microsoft.Insights/actionGroups" + "microsoft.insights/actionGroups" ] } }, @@ -61,7 +61,7 @@ "properties", "type" ], - "description": "Microsoft.Insights/actionGroups" + "description": "microsoft.insights/actionGroups" }, "metricAlerts": { "type": "object", @@ -545,7 +545,7 @@ "type": "string", "description": "the id of the action group to use." }, - "webhookProperties": { + "webHookProperties": { "oneOf": [ { "type": "object", @@ -569,6 +569,9 @@ { "$ref": "#/definitions/MetricAlertSingleResourceMultipleMetricCriteria" }, + { + "$ref": "#/definitions/WebtestLocationAvailabilityCriteria" + }, { "$ref": "#/definitions/MetricAlertMultipleResourceMultipleMetricCriteria" } @@ -648,7 +651,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "the flag that indicates whether the alert should be auto resolved or not." + "description": "the flag that indicates whether the alert should be auto resolved or not. The default is true." }, "criteria": { "oneOf": [ @@ -829,32 +832,31 @@ ], "description": "the criteria operator." }, - "threshold": { + "skipMetricValidation": { "oneOf": [ { - "type": "number" + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "the criteria threshold value that activates the alert." + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." }, - "timeAggregation": { + "threshold": { "oneOf": [ { - "type": "string", - "enum": [ - "Average", - "Minimum", - "Maximum", - "Total" - ] + "type": "number" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], + "description": "the criteria threshold value that activates the alert." + }, + "timeAggregation": { + "type": "object", + "properties": {}, "description": "the criteria time aggregation types." } }, @@ -954,21 +956,20 @@ "type": "string", "description": "Name of the criteria." }, - "timeAggregation": { + "skipMetricValidation": { "oneOf": [ { - "type": "string", - "enum": [ - "Average", - "Minimum", - "Maximum", - "Total" - ] + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, + "timeAggregation": { + "type": "object", + "properties": {}, "description": "the criteria time aggregation types." } }, @@ -1042,6 +1043,43 @@ "serviceUri" ], "description": "A webhook receiver." + }, + "WebtestLocationAvailabilityCriteria": { + "type": "object", + "properties": { + "componentId": { + "type": "string", + "description": "The Application Insights resource Id." + }, + "failedLocationCount": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of failed locations." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" + ] + }, + "webTestId": { + "type": "string", + "description": "The Application Insights web test Id." + } + }, + "required": [ + "componentId", + "failedLocationCount", + "odata.type", + "webTestId" + ], + "description": "Specifies the metric alert rule criteria for a web test resource." } } } diff --git a/schemas/2018-04-16/microsoft.insights.json b/schemas/2018-04-16/microsoft.insights.json new file mode 100644 index 0000000000..04a6b90cec --- /dev/null +++ b/schemas/2018-04-16/microsoft.insights.json @@ -0,0 +1,517 @@ +{ + "id": "https://schema.management.azure.com/schemas/2018-04-16/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "scheduledQueryRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-04-16" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the rule." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LogSearchRule" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Log Search Rule Definition" + }, + "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.insights/scheduledQueryRules" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/scheduledQueryRules" + } + }, + "definitions": { + "Action": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AlertingAction" + }, + { + "$ref": "#/definitions/LogToMetricAction" + } + ], + "properties": {}, + "description": "Action descriptor." + }, + "AlertingAction": { + "type": "object", + "properties": { + "aznsAction": { + "oneOf": [ + { + "$ref": "#/definitions/AzNsActionGroup" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Azure action group" + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" + ] + }, + "severity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "0", + "1", + "2", + "3", + "4" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Severity of the alert." + }, + "throttlingInMin": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "time (in minutes) for which Alerts should be throttled or suppressed." + }, + "trigger": { + "oneOf": [ + { + "$ref": "#/definitions/TriggerCondition" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The condition that results in the Log Search rule." + } + }, + "required": [ + "odata.type", + "severity", + "trigger" + ], + "description": "Specify action need to be taken when rule type is Alert" + }, + "AzNsActionGroup": { + "type": "object", + "properties": { + "actionGroup": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Azure Action Group reference." + }, + "customWebhookPayload": { + "type": "string", + "description": "Custom payload to be sent for all webhook URI in Azure action group" + }, + "emailSubject": { + "type": "string", + "description": "Custom subject override for all email ids in Azure action group" + } + }, + "description": "Azure action group" + }, + "Criteria": { + "type": "object", + "properties": { + "dimensions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Dimension" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of Dimensions for creating metric" + }, + "metricName": { + "type": "string", + "description": "Name of the metric" + } + }, + "required": [ + "metricName" + ], + "description": "Specifies the criteria for converting log to metric." + }, + "Dimension": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the dimension" + }, + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Include" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Operator for dimension values" + }, + "values": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of dimension values" + } + }, + "required": [ + "name", + "operator", + "values" + ], + "description": "Specifies the criteria for converting log to metric." + }, + "LogMetricTrigger": { + "type": "object", + "properties": { + "metricColumn": { + "type": "string", + "description": "Evaluation of metric on a particular column" + }, + "metricTriggerType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Consecutive", + "Total" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metric Trigger Type - 'Consecutive' or 'Total'." + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The threshold of the metric trigger." + }, + "thresholdOperator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "GreaterThan", + "LessThan", + "Equal" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'." + } + }, + "description": "A log metrics trigger descriptor." + }, + "LogSearchRule": { + "type": "object", + "properties": { + "action": { + "oneOf": [ + { + "$ref": "#/definitions/Action" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Action descriptor." + }, + "description": { + "type": "string", + "description": "The description of the Log Search rule." + }, + "enabled": { + "oneOf": [ + { + "type": "string", + "enum": [ + "true", + "false" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The flag which indicates whether the Log Search rule is enabled. Value should be true or false." + }, + "schedule": { + "oneOf": [ + { + "$ref": "#/definitions/Schedule" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines how often to run the search and the time interval." + }, + "source": { + "oneOf": [ + { + "$ref": "#/definitions/Source" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the log search query." + } + }, + "required": [ + "action", + "source" + ], + "description": "Log Search Rule Definition" + }, + "LogToMetricAction": { + "type": "object", + "properties": { + "criteria": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Criteria" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Criteria of Metric" + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction" + ] + } + }, + "required": [ + "criteria", + "odata.type" + ], + "description": "Specify action need to be taken when rule type is converting log to metric" + }, + "Schedule": { + "type": "object", + "properties": { + "frequencyInMinutes": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "frequency (in minutes) at which rule condition should be evaluated." + }, + "timeWindowInMinutes": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes)." + } + }, + "required": [ + "frequencyInMinutes", + "timeWindowInMinutes" + ], + "description": "Defines how often to run the search and the time interval." + }, + "Source": { + "type": "object", + "properties": { + "authorizedResources": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of Resource referred into query" + }, + "dataSourceId": { + "type": "string", + "description": "The resource uri over which log search query is to be run." + }, + "query": { + "type": "string", + "description": "Log search query. Required for action type - AlertingAction" + }, + "queryType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ResultCount" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Set value to 'ResultCount'." + } + }, + "required": [ + "dataSourceId" + ], + "description": "Specifies the log search query." + }, + "TriggerCondition": { + "type": "object", + "properties": { + "metricTrigger": { + "oneOf": [ + { + "$ref": "#/definitions/LogMetricTrigger" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A log metrics trigger descriptor." + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Result or count threshold based on which rule should be triggered." + }, + "thresholdOperator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "GreaterThan", + "LessThan", + "Equal" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Evaluation operation for rule - 'GreaterThan' or 'LessThan." + } + }, + "required": [ + "threshold", + "thresholdOperator" + ], + "description": "The condition that results in the Log Search rule." + } + } +} diff --git a/schemas/2018-06-01-preview/microsoft.insights.json b/schemas/2018-06-01-preview/microsoft.insights.json new file mode 100644 index 0000000000..b2ca8838c4 --- /dev/null +++ b/schemas/2018-06-01-preview/microsoft.insights.json @@ -0,0 +1,383 @@ +{ + "id": "https://schema.management.azure.com/schemas/2018-06-01-preview/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "guestDiagnosticSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the diagnostic setting." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/GuestDiagnosticSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Virtual machine diagnostic settings" + }, + "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.insights/guestDiagnosticSettings" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/guestDiagnosticSettings" + } + }, + "unknown_resourceDefinitions": { + "guestDiagnosticSettingsAssociation": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the diagnostic settings association." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/GuestDiagnosticSettingsAssociation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A guest diagnostic settings association." + }, + "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.insights/guestDiagnosticSettingsAssociation" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/guestDiagnosticSettingsAssociation" + } + }, + "definitions": { + "DataSource": { + "type": "object", + "properties": { + "configuration": { + "oneOf": [ + { + "$ref": "#/definitions/DataSourceConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "PerformanceCounter", + "ETWProviders", + "WindowsEventLogs" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Datasource kind." + }, + "sinks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SinkConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "required": [ + "configuration", + "kind", + "sinks" + ], + "description": "Data source object contains configuration to collect telemetry and one or more sinks to send that telemetry data to" + }, + "DataSourceConfiguration": { + "type": "object", + "properties": { + "eventLogs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/EventLogConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Windows event logs configuration." + }, + "perfCounters": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/PerformanceCounterConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Performance counter configuration" + }, + "providers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/EtwProviderConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ETW providers configuration" + } + } + }, + "EtwEventConfiguration": { + "type": "object", + "properties": { + "filter": { + "type": "string" + }, + "id": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + "EtwProviderConfiguration": { + "type": "object", + "properties": { + "events": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/EtwEventConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "events", + "id" + ] + }, + "EventLogConfiguration": { + "type": "object", + "properties": { + "filter": { + "type": "string" + }, + "logName": { + "type": "string" + } + }, + "required": [ + "logName" + ] + }, + "GuestDiagnosticSettings": { + "type": "object", + "properties": { + "dataSources": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/DataSource" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the array of data source object which are configured to collect and send data" + }, + "osType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Windows", + "Linux" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Operating system type for the configuration." + }, + "proxySetting": { + "type": "string" + } + }, + "description": "Virtual machine diagnostic settings" + }, + "GuestDiagnosticSettingsAssociation": { + "type": "object", + "properties": { + "guestDiagnosticSettingsName": { + "type": "string", + "description": "The guest diagnostic settings name." + } + }, + "required": [ + "guestDiagnosticSettingsName" + ], + "description": "A guest diagnostic settings association." + }, + "PerformanceCounterConfiguration": { + "type": "object", + "properties": { + "instance": { + "type": "string" + }, + "name": { + "type": "string" + }, + "samplingPeriod": { + "type": "string" + } + }, + "required": [ + "name", + "samplingPeriod" + ] + }, + "SinkConfiguration": { + "type": "object", + "properties": { + "kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "EventHub", + "ApplicationInsights", + "LogAnalytics" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "required": [ + "kind" + ] + } + } +} diff --git a/schemas/2018-09-01/microsoft.insights.json b/schemas/2018-09-01/microsoft.insights.json new file mode 100644 index 0000000000..6f67f87fa4 --- /dev/null +++ b/schemas/2018-09-01/microsoft.insights.json @@ -0,0 +1,481 @@ +{ + "id": "https://schema.management.azure.com/schemas/2018-09-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "actionGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-09-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the action group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ActionGroup" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Azure action group." + }, + "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.insights/actionGroups" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/actionGroups" + } + }, + "definitions": { + "ActionGroup": { + "type": "object", + "properties": { + "armRoleReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ArmRoleReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." + }, + "automationRunbookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "azureFunctionReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFunctionReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of azure function receivers that are part of this action group." + }, + "emailReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of email receivers that are part of this action group." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." + }, + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." + }, + "itsmReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of ITSM receivers that are part of this action group." + }, + "logicAppReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LogicAppReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of logic app receivers that are part of this action group." + }, + "smsReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of SMS receivers that are part of this action group." + }, + "voiceReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of voice receivers that are part of this action group." + }, + "webhookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of webhook receivers that are part of this action group." + } + }, + "required": [ + "enabled", + "groupShortName" + ], + "description": "An Azure action group." + }, + "ArmRoleReceiver": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." + }, + "roleId": { + "type": "string", + "description": "The arm role id." + } + }, + "required": [ + "name", + "roleId" + ], + "description": "An arm role receiver." + }, + "AutomationRunbookReceiver": { + "type": "object", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "isGlobalRunbook": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + } + }, + "required": [ + "automationAccountId", + "isGlobalRunbook", + "runbookName", + "webhookResourceId" + ], + "description": "The Azure Automation Runbook notification receiver." + }, + "AzureAppPushReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + }, + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + } + }, + "required": [ + "emailAddress", + "name" + ], + "description": "The Azure mobile App push notification receiver." + }, + "AzureFunctionReceiver": { + "type": "object", + "properties": { + "functionAppResourceId": { + "type": "string", + "description": "The azure resource id of the function app." + }, + "functionName": { + "type": "string", + "description": "The function name in the function app." + }, + "httpTriggerUrl": { + "type": "string", + "description": "The http trigger url where http request sent to." + }, + "name": { + "type": "string", + "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." + } + }, + "required": [ + "functionAppResourceId", + "functionName", + "httpTriggerUrl", + "name" + ], + "description": "An azure function receiver." + }, + "EmailReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + } + }, + "required": [ + "emailAddress", + "name" + ], + "description": "An email receiver." + }, + "ItsmReceiver": { + "type": "object", + "properties": { + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + } + }, + "required": [ + "connectionId", + "name", + "region", + "ticketConfiguration", + "workspaceId" + ], + "description": "An Itsm receiver." + }, + "LogicAppReceiver": { + "type": "object", + "properties": { + "callbackUrl": { + "type": "string", + "description": "The callback url where http request sent to." + }, + "name": { + "type": "string", + "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." + }, + "resourceId": { + "type": "string", + "description": "The azure resource id of the logic app receiver." + } + }, + "required": [ + "callbackUrl", + "name", + "resourceId" + ], + "description": "A logic app receiver." + }, + "SmsReceiver": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + } + }, + "required": [ + "countryCode", + "name", + "phoneNumber" + ], + "description": "An SMS receiver." + }, + "VoiceReceiver": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The country code of the voice receiver." + }, + "name": { + "type": "string", + "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the voice receiver." + } + }, + "required": [ + "countryCode", + "name", + "phoneNumber" + ], + "description": "A voice receiver." + }, + "WebhookReceiver": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + } + }, + "required": [ + "name", + "serviceUri" + ], + "description": "A webhook receiver." + } + } +} diff --git a/schemas/2019-03-01/microsoft.insights.json b/schemas/2019-03-01/microsoft.insights.json new file mode 100644 index 0000000000..4134d40b9d --- /dev/null +++ b/schemas/2019-03-01/microsoft.insights.json @@ -0,0 +1,553 @@ +{ + "id": "https://schema.management.azure.com/schemas/2019-03-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "actionGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-03-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the action group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ActionGroup" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Azure action group." + }, + "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.insights/actionGroups" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/actionGroups" + } + }, + "definitions": { + "ActionGroup": { + "type": "object", + "properties": { + "armRoleReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ArmRoleReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." + }, + "automationRunbookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "azureFunctionReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFunctionReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of azure function receivers that are part of this action group." + }, + "emailReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of email receivers that are part of this action group." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." + }, + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." + }, + "itsmReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of ITSM receivers that are part of this action group." + }, + "logicAppReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LogicAppReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of logic app receivers that are part of this action group." + }, + "smsReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of SMS receivers that are part of this action group." + }, + "voiceReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of voice receivers that are part of this action group." + }, + "webhookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of webhook receivers that are part of this action group." + } + }, + "required": [ + "enabled", + "groupShortName" + ], + "description": "An Azure action group." + }, + "ArmRoleReceiver": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." + }, + "roleId": { + "type": "string", + "description": "The arm role id." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "roleId", + "useCommonAlertSchema" + ], + "description": "An arm role receiver." + }, + "AutomationRunbookReceiver": { + "type": "object", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "isGlobalRunbook": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + } + }, + "required": [ + "automationAccountId", + "isGlobalRunbook", + "runbookName", + "useCommonAlertSchema", + "webhookResourceId" + ], + "description": "The Azure Automation Runbook notification receiver." + }, + "AzureAppPushReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + }, + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + } + }, + "required": [ + "emailAddress", + "name" + ], + "description": "The Azure mobile App push notification receiver." + }, + "AzureFunctionReceiver": { + "type": "object", + "properties": { + "functionAppResourceId": { + "type": "string", + "description": "The azure resource id of the function app." + }, + "functionName": { + "type": "string", + "description": "The function name in the function app." + }, + "httpTriggerUrl": { + "type": "string", + "description": "The http trigger url where http request sent to." + }, + "name": { + "type": "string", + "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "functionAppResourceId", + "functionName", + "httpTriggerUrl", + "name", + "useCommonAlertSchema" + ], + "description": "An azure function receiver." + }, + "EmailReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "emailAddress", + "name", + "useCommonAlertSchema" + ], + "description": "An email receiver." + }, + "ItsmReceiver": { + "type": "object", + "properties": { + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + } + }, + "required": [ + "connectionId", + "name", + "region", + "ticketConfiguration", + "workspaceId" + ], + "description": "An Itsm receiver." + }, + "LogicAppReceiver": { + "type": "object", + "properties": { + "callbackUrl": { + "type": "string", + "description": "The callback url where http request sent to." + }, + "name": { + "type": "string", + "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." + }, + "resourceId": { + "type": "string", + "description": "The azure resource id of the logic app receiver." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "callbackUrl", + "name", + "resourceId", + "useCommonAlertSchema" + ], + "description": "A logic app receiver." + }, + "SmsReceiver": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + } + }, + "required": [ + "countryCode", + "name", + "phoneNumber" + ], + "description": "An SMS receiver." + }, + "VoiceReceiver": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The country code of the voice receiver." + }, + "name": { + "type": "string", + "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the voice receiver." + } + }, + "required": [ + "countryCode", + "name", + "phoneNumber" + ], + "description": "A voice receiver." + }, + "WebhookReceiver": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "serviceUri", + "useCommonAlertSchema" + ], + "description": "A webhook receiver." + } + } +} diff --git a/schemas/2019-04-15/Microsoft.Cdn.json b/schemas/2019-04-15/Microsoft.Cdn.json index 21b9c9dfb0..c252403d24 100644 --- a/schemas/2019-04-15/Microsoft.Cdn.json +++ b/schemas/2019-04-15/Microsoft.Cdn.json @@ -2716,4 +2716,4 @@ "description": "Defines the parameters for the url rewrite action." } } -} \ No newline at end of file +} diff --git a/schemas/2019-06-01/microsoft.insights.json b/schemas/2019-06-01/microsoft.insights.json new file mode 100644 index 0000000000..d4309e0210 --- /dev/null +++ b/schemas/2019-06-01/microsoft.insights.json @@ -0,0 +1,577 @@ +{ + "id": "https://schema.management.azure.com/schemas/2019-06-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "actionGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-06-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the action group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ActionGroup" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Azure action group." + }, + "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.insights/actionGroups" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/actionGroups" + } + }, + "definitions": { + "ActionGroup": { + "type": "object", + "properties": { + "armRoleReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ArmRoleReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported." + }, + "automationRunbookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationRunbookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AutomationRunbook receivers that are part of this action group." + }, + "azureAppPushReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AzureAppPushReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of AzureAppPush receivers that are part of this action group." + }, + "azureFunctionReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AzureFunctionReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of azure function receivers that are part of this action group." + }, + "emailReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/EmailReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of email receivers that are part of this action group." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications." + }, + "groupShortName": { + "type": "string", + "maxLength": 12, + "description": "The short name of the action group. This will be used in SMS messages." + }, + "itsmReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ItsmReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of ITSM receivers that are part of this action group." + }, + "logicAppReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LogicAppReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of logic app receivers that are part of this action group." + }, + "smsReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SmsReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of SMS receivers that are part of this action group." + }, + "voiceReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of voice receivers that are part of this action group." + }, + "webhookReceivers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookReceiver" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of webhook receivers that are part of this action group." + } + }, + "required": [ + "enabled", + "groupShortName" + ], + "description": "An Azure action group." + }, + "ArmRoleReceiver": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the arm role receiver. Names must be unique across all receivers within an action group." + }, + "roleId": { + "type": "string", + "description": "The arm role id." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "roleId", + "useCommonAlertSchema" + ], + "description": "An arm role receiver." + }, + "AutomationRunbookReceiver": { + "type": "object", + "properties": { + "automationAccountId": { + "type": "string", + "description": "The Azure automation account Id which holds this runbook and authenticate to Azure resource." + }, + "isGlobalRunbook": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this instance is global runbook." + }, + "name": { + "type": "string", + "description": "Indicates name of the webhook." + }, + "runbookName": { + "type": "string", + "description": "The name for this runbook." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + }, + "webhookResourceId": { + "type": "string", + "description": "The resource id for webhook linked to this runbook." + } + }, + "required": [ + "automationAccountId", + "isGlobalRunbook", + "runbookName", + "useCommonAlertSchema", + "webhookResourceId" + ], + "description": "The Azure Automation Runbook notification receiver." + }, + "AzureAppPushReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address registered for the Azure mobile app." + }, + "name": { + "type": "string", + "description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." + } + }, + "required": [ + "emailAddress", + "name" + ], + "description": "The Azure mobile App push notification receiver." + }, + "AzureFunctionReceiver": { + "type": "object", + "properties": { + "functionAppResourceId": { + "type": "string", + "description": "The azure resource id of the function app." + }, + "functionName": { + "type": "string", + "description": "The function name in the function app." + }, + "httpTriggerUrl": { + "type": "string", + "description": "The http trigger url where http request sent to." + }, + "name": { + "type": "string", + "description": "The name of the azure function receiver. Names must be unique across all receivers within an action group." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "functionAppResourceId", + "functionName", + "httpTriggerUrl", + "name", + "useCommonAlertSchema" + ], + "description": "An azure function receiver." + }, + "EmailReceiver": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address of this receiver." + }, + "name": { + "type": "string", + "description": "The name of the email receiver. Names must be unique across all receivers within an action group." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "emailAddress", + "name", + "useCommonAlertSchema" + ], + "description": "An email receiver." + }, + "ItsmReceiver": { + "type": "object", + "properties": { + "connectionId": { + "type": "string", + "description": "Unique identification of ITSM connection among multiple defined in above workspace." + }, + "name": { + "type": "string", + "description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." + }, + "region": { + "type": "string", + "description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" + }, + "ticketConfiguration": { + "type": "string", + "description": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." + }, + "workspaceId": { + "type": "string", + "description": "OMS LA instance identifier." + } + }, + "required": [ + "connectionId", + "name", + "region", + "ticketConfiguration", + "workspaceId" + ], + "description": "An Itsm receiver." + }, + "LogicAppReceiver": { + "type": "object", + "properties": { + "callbackUrl": { + "type": "string", + "description": "The callback url where http request sent to." + }, + "name": { + "type": "string", + "description": "The name of the logic app receiver. Names must be unique across all receivers within an action group." + }, + "resourceId": { + "type": "string", + "description": "The azure resource id of the logic app receiver." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "callbackUrl", + "name", + "resourceId", + "useCommonAlertSchema" + ], + "description": "A logic app receiver." + }, + "SmsReceiver": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The country code of the SMS receiver." + }, + "name": { + "type": "string", + "description": "The name of the SMS receiver. Names must be unique across all receivers within an action group." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the SMS receiver." + } + }, + "required": [ + "countryCode", + "name", + "phoneNumber" + ], + "description": "An SMS receiver." + }, + "VoiceReceiver": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "The country code of the voice receiver." + }, + "name": { + "type": "string", + "description": "The name of the voice receiver. Names must be unique across all receivers within an action group." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number of the voice receiver." + } + }, + "required": [ + "countryCode", + "name", + "phoneNumber" + ], + "description": "A voice receiver." + }, + "WebhookReceiver": { + "type": "object", + "properties": { + "identifierUri": { + "type": "string", + "description": "Indicates the identifier uri for aad auth." + }, + "name": { + "type": "string", + "description": "The name of the webhook receiver. Names must be unique across all receivers within an action group." + }, + "objectId": { + "type": "string", + "description": "Indicates the webhook app object Id for aad auth." + }, + "serviceUri": { + "type": "string", + "description": "The URI where webhooks should be sent." + }, + "tenantId": { + "type": "string", + "description": "Indicates the tenant id for aad auth." + }, + "useAadAuth": { + "oneOf": [ + { + "type": "boolean", + "default": false + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether or not use AAD authentication." + }, + "useCommonAlertSchema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether to use common alert schema." + } + }, + "required": [ + "name", + "serviceUri", + "useCommonAlertSchema" + ], + "description": "A webhook receiver." + } + } +} diff --git a/schemas/2019-06-15-preview/Microsoft.Cdn.json b/schemas/2019-06-15-preview/Microsoft.Cdn.json index eea8a37b5b..f0731126ab 100644 --- a/schemas/2019-06-15-preview/Microsoft.Cdn.json +++ b/schemas/2019-06-15-preview/Microsoft.Cdn.json @@ -3413,4 +3413,4 @@ "description": "Defines the parameters for the url rewrite action." } } -} \ No newline at end of file +} diff --git a/schemas/2019-06-15/Microsoft.Cdn.json b/schemas/2019-06-15/Microsoft.Cdn.json index f788606481..bbc43ed89b 100644 --- a/schemas/2019-06-15/Microsoft.Cdn.json +++ b/schemas/2019-06-15/Microsoft.Cdn.json @@ -3396,4 +3396,4 @@ "description": "Defines the parameters for the url rewrite action." } } -} \ No newline at end of file +} diff --git a/schemas/2019-07-24-preview/Microsoft.AzureData.json b/schemas/2019-07-24-preview/Microsoft.AzureData.json index 8b9d2cefe1..108875ba04 100644 --- a/schemas/2019-07-24-preview/Microsoft.AzureData.json +++ b/schemas/2019-07-24-preview/Microsoft.AzureData.json @@ -521,4 +521,4 @@ "description": "Microsoft.AzureData/sqlServerRegistrations/sqlServers" } } -} \ No newline at end of file +} diff --git a/schemas/2019-10-01/Microsoft.Migrate.json b/schemas/2019-10-01/Microsoft.Migrate.json index ccaeccd1c0..8c2c689094 100644 --- a/schemas/2019-10-01/Microsoft.Migrate.json +++ b/schemas/2019-10-01/Microsoft.Migrate.json @@ -929,4 +929,4 @@ } } } -} \ No newline at end of file +} diff --git a/schemas/2019-10-17-preview/microsoft.insights.json b/schemas/2019-10-17-preview/microsoft.insights.json index df3aa36f87..0fdebc01d9 100644 --- a/schemas/2019-10-17-preview/microsoft.insights.json +++ b/schemas/2019-10-17-preview/microsoft.insights.json @@ -153,65 +153,6 @@ "type" ], "description": "Microsoft.Insights/privateLinkScopes/scopedResources" - }, - "workbooktemplates": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-17-preview" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "name": { - "type": "string", - "description": "The name of the Application Insights component resource." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/WorkbookTemplateProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties that contain a workbook template." - }, - "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.insights/workbooktemplates" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "microsoft.insights/workbooktemplates" } }, "definitions": { @@ -363,126 +304,6 @@ } }, "description": "Properties of a private link scoped resource." - }, - "WorkbookTemplateGallery": { - "type": "object", - "properties": { - "category": { - "type": "string", - "description": "Category for the gallery." - }, - "name": { - "type": "string", - "description": "Name of the workbook template in the gallery." - }, - "order": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Order of the template within the gallery." - }, - "resourceType": { - "type": "string", - "description": "Azure resource type supported by the gallery." - }, - "type": { - "type": "string", - "description": "Type of workbook supported by the workbook template." - } - }, - "description": "Gallery information for a workbook template." - }, - "WorkbookTemplateLocalizedGallery": { - "type": "object", - "properties": { - "galleries": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/WorkbookTemplateGallery" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Workbook galleries supported by the template." - }, - "templateData": { - "type": "object", - "properties": {}, - "description": "Valid JSON object containing workbook template payload." - } - }, - "description": "Localized template data and gallery information." - }, - "WorkbookTemplateProperties": { - "type": "object", - "properties": { - "author": { - "type": "string", - "description": "Information about the author of the workbook template." - }, - "galleries": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/WorkbookTemplateGallery" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Workbook galleries supported by the template." - }, - "localized": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "$ref": "#/definitions/WorkbookTemplateLocalizedGallery" - } - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal." - }, - "priority": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode." - }, - "templateData": { - "type": "object", - "properties": {}, - "description": "Valid JSON object containing workbook template payload." - } - }, - "required": [ - "galleries", - "templateData" - ], - "description": "Properties that contain a workbook template." } } } diff --git a/schemas/2019-11-01-preview/Microsoft.Insights.json b/schemas/2019-11-01-preview/Microsoft.Insights.json index bc96a27105..fdc555234d 100644 --- a/schemas/2019-11-01-preview/Microsoft.Insights.json +++ b/schemas/2019-11-01-preview/Microsoft.Insights.json @@ -748,4 +748,4 @@ "description": "Definition of which Windows Event Log events will be collected and how they will be collected.\r\nOnly collected from Windows machines." } } -} \ No newline at end of file +} diff --git a/schemas/2019-12-31/Microsoft.Cdn.json b/schemas/2019-12-31/Microsoft.Cdn.json index 7682054947..970d3d2126 100644 --- a/schemas/2019-12-31/Microsoft.Cdn.json +++ b/schemas/2019-12-31/Microsoft.Cdn.json @@ -3368,4 +3368,4 @@ "description": "Defines the parameters for the url rewrite action." } } -} \ No newline at end of file +} diff --git a/schemas/2020-01-01-preview/Microsoft.HybridNetwork.json b/schemas/2020-01-01-preview/Microsoft.HybridNetwork.json new file mode 100644 index 0000000000..1ecb0e5552 --- /dev/null +++ b/schemas/2020-01-01-preview/Microsoft.HybridNetwork.json @@ -0,0 +1,1145 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-01-01-preview/Microsoft.HybridNetwork.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.HybridNetwork", + "description": "Microsoft HybridNetwork Resource Types", + "resourceDefinitions": { + "devices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "Resource name for the device resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DevicePropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Device 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.HybridNetwork/devices" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.HybridNetwork/devices" + }, + "networkFunctions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "Resource name for the network function resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/NetworkFunctionPropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Network function 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.HybridNetwork/networkFunctions" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.HybridNetwork/networkFunctions" + } + }, + "subscription_resourceDefinitions": { + "locations_vendors_networkFunctions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The GUID for the vendor network function." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/VendorNetworkFunctionPropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Vendor network function properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.HybridNetwork/locations/vendors/networkFunctions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.HybridNetwork/locations/vendors/networkFunctions" + }, + "vendors": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the vendor." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/VendorPropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Vendor properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/vendors_vendorSkus_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.HybridNetwork/vendors" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.HybridNetwork/vendors" + }, + "vendors_vendorSkus": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the sku." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/VendorSkuPropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Sku properties" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/vendors_vendorSkus_previewSubscriptions_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.HybridNetwork/vendors/vendorSkus" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.HybridNetwork/vendors/vendorSkus" + }, + "vendors_vendorSkus_previewSubscriptions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Preview subscription ID." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.HybridNetwork/vendors/vendorSkus/previewSubscriptions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.HybridNetwork/vendors/vendorSkus/previewSubscriptions" + } + }, + "definitions": { + "CustomProfile": { + "type": "object", + "properties": { + "metadataConfigurationPath": { + "type": "string", + "description": "Path for metadata configuration." + } + }, + "description": "Specifies the custom settings for the virtual machine." + }, + "DataDisk": { + "type": "object", + "properties": { + "createOption": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Empty" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies how the virtual machine should be created." + }, + "diskSizeGB": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image." + }, + "name": { + "type": "string", + "description": "The name of data disk." + } + }, + "description": "Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + }, + "DevicePropertiesFormat": { + "type": "object", + "properties": { + "azureStackEdge": { + "oneOf": [ + { + "$ref": "#/definitions/SubResource" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Reference to another sub resource." + } + }, + "description": "Device properties." + }, + "ImageReference": { + "type": "object", + "properties": { + "exactVersion": { + "type": "string", + "description": "Specifies in decimal numbers, the exact version of image used to create the virtual machine." + }, + "offer": { + "type": "string", + "description": "Specifies the offer of the image used to create the virtual machine." + }, + "publisher": { + "type": "string", + "description": "The image publisher." + }, + "sku": { + "type": "string", + "description": "The image SKU." + }, + "version": { + "type": "string", + "description": "Specifies the version of the image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available." + } + }, + "description": "The image reference properties." + }, + "LinuxConfiguration": { + "type": "object", + "properties": { + "ssh": { + "oneOf": [ + { + "$ref": "#/definitions/SshConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SSH configuration for Linux based VMs running on Azure" + } + }, + "description": "Specifies the Linux operating system settings on the virtual machine." + }, + "NetworkFunctionPropertiesFormat": { + "type": "object", + "properties": { + "device": { + "oneOf": [ + { + "$ref": "#/definitions/SubResource" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Reference to another sub resource." + }, + "managedApplicationParameters": { + "type": "object", + "properties": {}, + "description": "The parameters for the managed application." + }, + "networkFunctionUserConfigurations": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkFunctionUserConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network function configurations from the user." + }, + "skuName": { + "type": "string", + "description": "The sku name for the network function." + }, + "vendorName": { + "type": "string", + "description": "The vendor name for the network function." + } + }, + "description": "Network function properties." + }, + "NetworkFunctionRoleConfiguration": { + "type": "object", + "properties": { + "customProfile": { + "oneOf": [ + { + "$ref": "#/definitions/CustomProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the custom settings for the virtual machine." + }, + "networkInterfaces": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterface" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network interface configurations." + }, + "osProfile": { + "oneOf": [ + { + "$ref": "#/definitions/OsProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the operating system settings for the role instance." + }, + "roleName": { + "type": "string", + "description": "The name of the network function role." + }, + "roleType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "VirtualMachine" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Role type." + }, + "storageProfile": { + "oneOf": [ + { + "$ref": "#/definitions/StorageProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the storage settings for the virtual machine disks." + }, + "userDataParameters": { + "type": "object", + "properties": {}, + "description": "The user data parameters." + }, + "userDataTemplate": { + "type": "object", + "properties": {}, + "description": "The user data template." + }, + "virtualMachineSize": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Standard_D1_v2", + "Standard_D2_v2", + "Standard_D3_v2", + "Standard_D4_v2", + "Standard_D5_v2", + "Standard_D11_v2", + "Standard_D12_v2", + "Standard_D13_v2", + "Standard_DS1_v2", + "Standard_DS2_v2", + "Standard_DS3_v2", + "Standard_DS4_v2", + "Standard_DS5_v2", + "Standard_DS11_v2", + "Standard_DS12_v2", + "Standard_DS13_v2", + "Standard_F1", + "Standard_F2", + "Standard_F4", + "Standard_F8", + "Standard_F16", + "Standard_F1s", + "Standard_F2s", + "Standard_F4s", + "Standard_F8s", + "Standard_F16s" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The size of the virtual machine." + } + }, + "description": "Network function role configuration." + }, + "NetworkFunctionTemplate": { + "type": "object", + "properties": { + "networkFunctionRoleConfigurations": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkFunctionRoleConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An array of network function role definitions." + } + }, + "description": "The network function template." + }, + "NetworkFunctionUserConfiguration": { + "type": "object", + "properties": { + "networkInterfaces": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterface" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network interface configuration." + }, + "osProfile": { + "oneOf": [ + { + "$ref": "#/definitions/NetworkFunctionUserConfigurationOsProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the operating system settings for the role instance." + }, + "roleName": { + "type": "string", + "description": "The name of the network function role." + }, + "userDataParameters": { + "type": "object", + "properties": {}, + "description": "The user data parameters." + } + }, + "description": "The network function user configuration." + }, + "NetworkFunctionUserConfigurationOsProfile": { + "type": "object", + "properties": { + "customData": { + "type": "string", + "description": "Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes.

**Note: Do not pass any secrets or passwords in customData property**

This property cannot be updated after the VM is created.

customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)" + } + }, + "description": "Specifies the operating system settings for the role instance." + }, + "NetworkFunctionVendorConfiguration": { + "type": "object", + "properties": { + "networkInterfaces": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterface" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network interface configurations." + }, + "osProfile": { + "oneOf": [ + { + "$ref": "#/definitions/OsProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the operating system settings for the role instance." + }, + "roleName": { + "type": "string", + "description": "The name of the vendor network function role." + } + }, + "description": "Network function vendor configuration." + }, + "NetworkInterface": { + "type": "object", + "properties": { + "ipConfigurations": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaceIPConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of IP configurations of the network interface." + }, + "macAddress": { + "type": "string", + "description": "The MAC address of the network interface." + }, + "networkInterfaceName": { + "type": "string", + "description": "The name of the network interface." + }, + "vmSwitchType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Management", + "Wan", + "Lan" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the VM switch." + } + }, + "description": "Network interface properties." + }, + "NetworkInterfaceIPConfiguration": { + "type": "object", + "properties": { + "dnsServers": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of DNS servers IP addresses." + }, + "gateway": { + "type": "string", + "description": "The value of the gateway." + }, + "ipAddress": { + "type": "string", + "description": "The value of the IP address." + }, + "ipAllocationMethod": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Static", + "Dynamic" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "IP address allocation method." + }, + "ipVersion": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "IPv4" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "IP address version." + }, + "subnet": { + "type": "string", + "description": "The value of the subnet." + } + }, + "description": "Network interface IP configuration properties." + }, + "OsDisk": { + "type": "object", + "properties": { + "diskSizeGB": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the size of os disk in gigabytes. This is the fully expanded disk size needed of the VHD image on the ASE. This disk size should be greater than the size of the VHD provided in vhdUri." + }, + "name": { + "type": "string", + "description": "The VHD name." + }, + "osType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Windows", + "Linux" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The OS type." + }, + "vhd": { + "oneOf": [ + { + "$ref": "#/definitions/VirtualHardDisk" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the uri of a disk." + } + }, + "description": "Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + }, + "OsProfile": { + "type": "object", + "properties": { + "adminUsername": { + "type": "string", + "description": "Specifies the name of the administrator account.

**Windows-only restriction:** Cannot end in \".\"

**Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters

  • For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
  • For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + }, + "customData": { + "type": "string", + "description": "Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes.

    **Note: Do not pass any secrets or passwords in customData property**

    This property cannot be updated after the VM is created.

    customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)

    For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)" + }, + "customDataRequired": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates if custom data is required to deploy this role." + }, + "linuxConfiguration": { + "oneOf": [ + { + "$ref": "#/definitions/LinuxConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the Linux operating system settings on the virtual machine." + } + }, + "description": "Specifies the operating system settings for the role instance." + }, + "SshConfiguration": { + "type": "object", + "properties": { + "publicKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SshPublicKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of SSH public keys used to authenticate with linux based VMs." + } + }, + "description": "SSH configuration for Linux based VMs running on Azure" + }, + "SshPublicKey": { + "type": "object", + "properties": { + "keyData": { + "type": "string", + "description": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

    For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + }, + "path": { + "type": "string", + "description": "Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys" + } + }, + "description": "Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed." + }, + "StorageProfile": { + "type": "object", + "properties": { + "dataDisks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/DataDisk" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the parameters that are used to add a data disk to a virtual machine." + }, + "imageReference": { + "oneOf": [ + { + "$ref": "#/definitions/ImageReference" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The image reference properties." + }, + "osDisk": { + "oneOf": [ + { + "$ref": "#/definitions/OsDisk" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies information about the operating system disk used by the virtual machine.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + } + }, + "description": "Specifies the storage settings for the virtual machine disks." + }, + "SubResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Reference to another sub resource." + }, + "VendorNetworkFunctionPropertiesFormat": { + "type": "object", + "properties": { + "networkFunctionVendorConfigurations": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkFunctionVendorConfiguration" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An array of network function vendor configurations." + }, + "vendorProvisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "NotProvisioned", + "Provisioning", + "Provisioned", + "Deprovisioned", + "UserDataValidationFailed" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The vendor controlled provisioning state of the vendor network function." + } + }, + "description": "Vendor network function properties." + }, + "VendorPropertiesFormat": { + "type": "object", + "properties": {}, + "description": "Vendor properties." + }, + "VendorSkuPropertiesFormat": { + "type": "object", + "properties": { + "deploymentMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Azure", + "PrivateEdgeZone" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The sku deployment mode." + }, + "managedApplicationParameters": { + "type": "object", + "properties": {}, + "description": "The parameters for the managed application." + }, + "managedApplicationTemplate": { + "type": "object", + "properties": {}, + "description": "The template for the managed application deployment." + }, + "networkFunctionTemplate": { + "oneOf": [ + { + "$ref": "#/definitions/NetworkFunctionTemplate" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network function template." + }, + "preview": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates if the vendor sku is in preview mode." + }, + "skuType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "EvolvedPacketCore", + "SDWAN", + "Firewall" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The sku type." + } + }, + "description": "Sku properties" + }, + "vendors_vendorSkus_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the sku." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/VendorSkuPropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Sku properties" + }, + "type": { + "type": "string", + "enum": [ + "vendorSkus" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.HybridNetwork/vendors/vendorSkus" + }, + "vendors_vendorSkus_previewSubscriptions_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Preview subscription ID." + }, + "type": { + "type": "string", + "enum": [ + "previewSubscriptions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.HybridNetwork/vendors/vendorSkus/previewSubscriptions" + }, + "VirtualHardDisk": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "Specifies the virtual hard disk's uri." + } + }, + "description": "Describes the uri of a disk." + } + } +} diff --git a/schemas/2020-01-01-preview/microsoft.insights.json b/schemas/2020-01-01-preview/microsoft.insights.json new file mode 100644 index 0000000000..dbe5979d83 --- /dev/null +++ b/schemas/2020-01-01-preview/microsoft.insights.json @@ -0,0 +1,119 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-01-01-preview/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": {}, + "managementGroup_resourceDefinitions": { + "diagnosticSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Location of the resource" + }, + "name": { + "type": "string", + "description": "The name of the diagnostic setting." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ManagementGroupDiagnosticSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The management group diagnostic settings." + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/diagnosticSettings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/diagnosticSettings" + } + }, + "definitions": { + "ManagementGroupDiagnosticSettings": { + "type": "object", + "properties": { + "eventHubAuthorizationRuleId": { + "type": "string", + "description": "The resource Id for the event hub authorization rule." + }, + "eventHubName": { + "type": "string", + "description": "The name of the event hub. If none is specified, the default event hub will be selected." + }, + "logs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupLogSettings" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of logs settings." + }, + "serviceBusRuleId": { + "type": "string", + "description": "The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility." + }, + "storageAccountId": { + "type": "string", + "description": "The resource ID of the storage account to which you would like to send Diagnostic Logs." + }, + "workspaceId": { + "type": "string", + "description": "The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2" + } + }, + "description": "The management group diagnostic settings." + }, + "ManagementGroupLogSettings": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Name of a Management Group Diagnostic Log category for a resource type this setting is applied to." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether this log is enabled." + } + }, + "required": [ + "category", + "enabled" + ], + "description": "Part of Management Group diagnostic setting. Specifies the settings for a particular log." + } + } +} diff --git a/schemas/2020-01-01/Microsoft.OffAzure.json b/schemas/2020-01-01/Microsoft.OffAzure.json index 06976966d4..a1ff955788 100644 --- a/schemas/2020-01-01/Microsoft.OffAzure.json +++ b/schemas/2020-01-01/Microsoft.OffAzure.json @@ -526,4 +526,4 @@ "description": "Microsoft.OffAzure/VMwareSites/vCenters" } } -} \ No newline at end of file +} diff --git a/schemas/2020-03-01-preview/Microsoft.StreamAnalytics.json b/schemas/2020-03-01-preview/Microsoft.StreamAnalytics.json index 190a036295..09d80ab387 100644 --- a/schemas/2020-03-01-preview/Microsoft.StreamAnalytics.json +++ b/schemas/2020-03-01-preview/Microsoft.StreamAnalytics.json @@ -300,4 +300,4 @@ "description": "Bag of properties defining a privatelinkServiceConnection." } } -} \ No newline at end of file +} diff --git a/schemas/2020-04-15/Microsoft.Cdn.json b/schemas/2020-04-15/Microsoft.Cdn.json index 3e347e4107..5bb5a7face 100644 --- a/schemas/2020-04-15/Microsoft.Cdn.json +++ b/schemas/2020-04-15/Microsoft.Cdn.json @@ -4230,4 +4230,4 @@ "description": "Defines how to identify a parameter for a specific purpose e.g. expires" } } -} \ No newline at end of file +} diff --git a/schemas/2020-05-01-preview/Microsoft.Insights.json b/schemas/2020-05-01-preview/Microsoft.Insights.json new file mode 100644 index 0000000000..f0caed07a2 --- /dev/null +++ b/schemas/2020-05-01-preview/Microsoft.Insights.json @@ -0,0 +1,382 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-05-01-preview/Microsoft.Insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Insights", + "description": "Microsoft Insights Resource Types", + "resourceDefinitions": { + "scheduledQueryRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the rule." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ScheduledQueryRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "scheduled query rule Definition" + }, + "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.Insights/scheduledQueryRules" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/scheduledQueryRules" + } + }, + "definitions": { + "Action": { + "type": "object", + "properties": { + "actionGroupId": { + "type": "string", + "description": "Action Group resource Id to invoke when the alert fires." + }, + "webHookProperties": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a webhook object." + } + }, + "description": "Actions to invoke when the alert fires." + }, + "Condition": { + "type": "object", + "properties": { + "dimensions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Dimension" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of Dimensions conditions" + }, + "failingPeriods": { + "oneOf": [ + { + "$ref": "#/definitions/ConditionFailingPeriods" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The minimum number of violations required within the selected lookback time window required to raise an alert." + }, + "metricMeasureColumn": { + "type": "string", + "description": "The column containing the metric measure number." + }, + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Equals", + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The criteria operator." + }, + "query": { + "type": "string", + "description": "Log query alert" + }, + "resourceIdColumn": { + "type": "string", + "description": "The column containing the resource id. The content of the column must be a uri formatted as resource id" + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the criteria threshold value that activates the alert." + }, + "timeAggregation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Count", + "Average", + "Minimum", + "Maximum", + "Total" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Aggregation type." + } + }, + "required": [ + "operator", + "threshold", + "timeAggregation" + ], + "description": "A condition of the scheduled query rule." + }, + "ConditionFailingPeriods": { + "type": "object", + "properties": { + "minFailingPeriodsToAlert": { + "oneOf": [ + { + "type": "integer", + "default": "1" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1" + }, + "numberOfEvaluationPeriods": { + "oneOf": [ + { + "type": "integer", + "default": "1" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1" + } + }, + "description": "The minimum number of violations required within the selected lookback time window required to raise an alert." + }, + "Dimension": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the dimension" + }, + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Include", + "Exclude" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Operator for dimension values." + }, + "values": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of dimension values" + } + }, + "required": [ + "name", + "operator", + "values" + ], + "description": "Dimension splitting and filtering definition" + }, + "ScheduledQueryRuleCriteria": { + "type": "object", + "properties": { + "allOf": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Condition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of conditions to evaluate against the specified scopes" + } + }, + "description": "The rule criteria that defines the conditions of the scheduled query rule." + }, + "ScheduledQueryRuleProperties": { + "type": "object", + "properties": { + "actions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Action" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "criteria": { + "oneOf": [ + { + "$ref": "#/definitions/ScheduledQueryRuleCriteria" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rule criteria that defines the conditions of the scheduled query rule." + }, + "description": { + "type": "string", + "description": "The description of the scheduled query rule." + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The flag which indicates whether this scheduled query rule is enabled. Value should be true or false" + }, + "evaluationFrequency": { + "type": "string", + "format": "duration", + "description": "How often the scheduled query rule is evaluated represented in ISO 8601 duration format." + }, + "muteActionsDuration": { + "type": "string", + "format": "duration", + "description": "Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired." + }, + "scopes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of resource id's that this scheduled query rule is scoped to." + }, + "severity": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest" + }, + "targetResourceTypes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria" + }, + "windowSize": { + "type": "string", + "format": "duration", + "description": "The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size)." + } + }, + "description": "scheduled query rule Definition" + } + } +} diff --git a/schemas/2020-07-07/Microsoft.OffAzure.json b/schemas/2020-07-07/Microsoft.OffAzure.json index 6b8a3894f0..7adbda9ca7 100644 --- a/schemas/2020-07-07/Microsoft.OffAzure.json +++ b/schemas/2020-07-07/Microsoft.OffAzure.json @@ -608,4 +608,4 @@ "description": "Microsoft.OffAzure/VMwareSites/vCenters" } } -} \ No newline at end of file +} diff --git a/schemas/2020-09-08-preview/Microsoft.AzureData.json b/schemas/2020-09-08-preview/Microsoft.AzureData.json index ddd72fd132..fefb27b690 100644 --- a/schemas/2020-09-08-preview/Microsoft.AzureData.json +++ b/schemas/2020-09-08-preview/Microsoft.AzureData.json @@ -399,4 +399,4 @@ "description": "Properties of SqlServerInstance." } } -} \ No newline at end of file +}