diff --git a/schemas/2018-05-01/subscriptionDeploymentTemplate.json b/schemas/2018-05-01/subscriptionDeploymentTemplate.json
index 0ec7b8e350..eb3b960ffe 100644
--- a/schemas/2018-05-01/subscriptionDeploymentTemplate.json
+++ b/schemas/2018-05-01/subscriptionDeploymentTemplate.json
@@ -899,156 +899,6 @@
{
"$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets"
},
- {
- "$ref": "https://schema.management.azure.com/schemas/2018-05-31/Microsoft.CostManagement.json#/subscription_resourceDefinitions/reportconfigs"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2018-08-01-preview/Microsoft.CostManagement.json#/subscription_resourceDefinitions/reports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-12-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-01-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-06-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-08-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/settings"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-05-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/settings"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-05-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/settings"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/settings"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/settings"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
{
"$ref": "https://schema.management.azure.com/schemas/2020-02-01-preview/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
},
diff --git a/schemas/2018-05-31/Microsoft.CostManagement.json b/schemas/2018-05-31/Microsoft.CostManagement.json
deleted file mode 100644
index eb586490c3..0000000000
--- a/schemas/2018-05-31/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,602 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2018-05-31/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "resourceDefinitions": {
- "reportconfigs": {
- "description": "Microsoft.CostManagement/reportconfigs",
- "properties": {
- "apiVersion": {
- "enum": [
- "2018-05-31"
- ],
- "type": "string"
- },
- "name": {
- "description": "Report Config Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/reportconfigs"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "subscription_resourceDefinitions": {
- "reportconfigs": {
- "description": "Microsoft.CostManagement/reportconfigs",
- "properties": {
- "apiVersion": {
- "enum": [
- "2018-05-31"
- ],
- "type": "string"
- },
- "name": {
- "description": "Report Config Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/reportconfigs"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataset": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigDeliveryDestination": {
- "description": "The destination information for the delivery of the report.",
- "properties": {
- "container": {
- "description": "The name of the container where reports will be uploaded.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where reports will be delivered.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where reports will be uploaded.",
- "type": "string"
- }
- },
- "required": [
- "resourceId",
- "container"
- ],
- "type": "object"
- },
- "ReportConfigDeliveryInfo": {
- "description": "The delivery information associated with a report config.",
- "properties": {
- "destination": {
- "description": "Has destination for the report being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimension": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "not": {
- "description": "The logical \"NOT\" expression.",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tag": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "columnType": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to group.",
- "type": "string"
- }
- },
- "required": [
- "columnType",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigProperties": {
- "description": "The properties of the report config.",
- "properties": {
- "definition": {
- "description": "Has definition for the report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the report being delivered.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ReportConfigRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence. If not provided, we default this to 10 years from the start date.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ReportConfigSchedule": {
- "description": "The schedule associated with a report config.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "recurrence",
- "recurrencePeriod"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2018-08-01-preview/Microsoft.CostManagement.json b/schemas/2018-08-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index 1fbf03f824..0000000000
--- a/schemas/2018-08-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,742 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2018-08-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "resourceDefinitions": {
- "connectors": {
- "description": "Microsoft.CostManagement/connectors",
- "properties": {
- "apiVersion": {
- "enum": [
- "2018-08-01-preview"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Connector kind (eg aws)",
- "type": "string"
- },
- "location": {
- "description": "Connector location",
- "type": "string"
- },
- "name": {
- "description": "Connector Name.",
- "type": "string"
- },
- "properties": {
- "description": "Connector properties",
- "oneOf": [
- {
- "$ref": "#/definitions/ConnectorProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Resource tags.",
- "oneOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/connectors"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "reports": {
- "description": "Microsoft.CostManagement/reports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2018-08-01-preview"
- ],
- "type": "string"
- },
- "name": {
- "description": "Report Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/reports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "subscription_resourceDefinitions": {
- "reports": {
- "description": "Microsoft.CostManagement/reports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2018-08-01-preview"
- ],
- "type": "string"
- },
- "name": {
- "description": "Report Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/reports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "extension_resourceDefinitions": {
- "reports": {
- "description": "Microsoft.CostManagement/reports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2018-08-01-preview"
- ],
- "type": "string"
- },
- "name": {
- "description": "Report Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/reports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ConnectorProperties": {
- "description": "The properties of a Connector",
- "properties": {
- "credentialsKey": {
- "description": "Credentials authentication key (eg AWS ARN)",
- "type": "string"
- },
- "credentialsSecret": {
- "description": "Credentials secret (eg AWS ExternalId)",
- "type": "string"
- },
- "displayName": {
- "description": "Connector DisplayName (defaults to Name)",
- "type": "string"
- },
- "reportId": {
- "description": "Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)",
- "type": "string"
- },
- "status": {
- "description": "Connector status",
- "oneOf": [
- {
- "enum": [
- "active",
- "error",
- "suspended"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Hourly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportDefinition": {
- "description": "The definition of a report.",
- "properties": {
- "dataset": {
- "description": "Has definition for data in this report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportDeliveryDestination": {
- "description": "The destination information for the delivery of the report.",
- "properties": {
- "container": {
- "description": "The name of the container where reports will be uploaded.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where reports will be delivered.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where reports will be uploaded.",
- "type": "string"
- }
- },
- "required": [
- "resourceId",
- "container"
- ],
- "type": "object"
- },
- "ReportDeliveryInfo": {
- "description": "The delivery information associated with a report.",
- "properties": {
- "destination": {
- "description": "Has destination for the report being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ReportFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimension": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "not": {
- "description": "The logical \"NOT\" expression.",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tag": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportProperties": {
- "description": "The properties of the report.",
- "properties": {
- "definition": {
- "description": "Has definition for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the report being delivered.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ReportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ReportSchedule": {
- "description": "The schedule associated with a report.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "recurrence"
- ],
- "type": "object"
- },
- "ReportTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2019-01-01/Microsoft.CostManagement.json b/schemas/2019-01-01/Microsoft.CostManagement.json
deleted file mode 100644
index 67499b3881..0000000000
--- a/schemas/2019-01-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,605 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-01-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDeliveryDestination": {
- "description": "The destination information for the delivery of the export. To allow access to a storage account, you must register the account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. When creating an export in the Azure portal, it is done automatically. However, API users need to register the subscription. For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services .",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- }
- },
- "required": [
- "resourceId",
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with a export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "recurrence"
- ],
- "type": "object"
- },
- "QueryAggregation": {
- "description": "The aggregation expression to be used in the query.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "QueryComparisonExpression": {
- "description": "The comparison expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "QueryDataset": {
- "description": "The definition of data present in the query.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/QueryAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the query.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Hourly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/QueryGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of sorting by columns in query.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/QuerySortingConfiguration"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryDatasetConfiguration": {
- "description": "The configuration of dataset in the query.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryDefinition": {
- "description": "The definition of a query.",
- "properties": {
- "dataset": {
- "description": "Has definition for data in this query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "TheLastWeek",
- "TheLastMonth",
- "TheLastYear",
- "Custom",
- "BillingMonthToDate",
- "TheLastBillingMonth"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the query.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "QueryFilter": {
- "description": "The filter expression to be used in the export.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimension": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "not": {
- "description": "The logical \"NOT\" expression.",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tag": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryGrouping": {
- "description": "The group by expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to group.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "QuerySortingConfiguration": {
- "description": "The configuration for sorting in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to use in sorting.",
- "type": "string"
- },
- "querySortingDirection": {
- "description": "The sorting direction",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryTimePeriod": {
- "description": "The start and end date for pulling data for the query.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2019-03-01-preview/Microsoft.CostManagement.json b/schemas/2019-03-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index baecf21a05..0000000000
--- a/schemas/2019-03-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,394 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "managementGroup_resourceDefinitions": {
- "externalSubscriptions": {
- "description": "Microsoft.CostManagement/externalSubscriptions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-03-01-preview"
- ],
- "type": "string"
- },
- "name": {
- "description": "External Subscription Name. (eg 'aws-{UsageAccountId}')",
- "type": "string"
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/externalSubscriptions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "tenant_resourceDefinitions": {
- "cloudConnectors": {
- "description": "Microsoft.CostManagement/cloudConnectors",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-03-01-preview"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Connector kind (eg aws)",
- "type": "string"
- },
- "name": {
- "description": "Connector Name.",
- "type": "string"
- },
- "properties": {
- "description": "Connector properties",
- "oneOf": [
- {
- "$ref": "#/definitions/ConnectorProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/cloudConnectors"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "externalSubscriptions": {
- "description": "Microsoft.CostManagement/externalSubscriptions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-03-01-preview"
- ],
- "type": "string"
- },
- "name": {
- "description": "External Subscription Name. (eg 'aws-{UsageAccountId}')",
- "type": "string"
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/externalSubscriptions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "extension_resourceDefinitions": {
- "showbackRules": {
- "description": "Microsoft.CostManagement/showbackRules",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-03-01-preview"
- ],
- "type": "string"
- },
- "name": {
- "description": "Showback rule name",
- "type": "string"
- },
- "properties": {
- "description": "Showback rule properties",
- "oneOf": [
- {
- "$ref": "#/definitions/ShowbackRuleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/showbackRules"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ConnectorProperties": {
- "description": "The properties of a Connector",
- "properties": {
- "billingModel": {
- "description": "Connector billing model",
- "oneOf": [
- {
- "enum": [
- "trial",
- "autoUpgrade",
- "premium",
- "expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "credentialsKey": {
- "description": "Credentials authentication key (eg AWS ARN)",
- "type": "string"
- },
- "credentialsSecret": {
- "description": "Credentials secret (eg AWS ExternalId)",
- "type": "string"
- },
- "defaultManagementGroupId": {
- "description": "Default ManagementGroupId",
- "type": "string"
- },
- "displayName": {
- "description": "Connector DisplayName",
- "type": "string"
- },
- "reportId": {
- "description": "Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)",
- "type": "string"
- },
- "subscriptionId": {
- "description": "Billing SubscriptionId",
- "type": "string"
- }
- },
- "type": "object"
- },
- "CostAllocationDetails": {
- "description": "Represents CostAllocation showback rule model",
- "properties": {
- "policy": {
- "description": "Cost allocation policy.",
- "oneOf": [
- {
- "enum": [
- "Proportional",
- "Evenly",
- "Fixed"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "CustomPriceDetails": {
- "description": "Represents Custom price showback rule model",
- "properties": {
- "benefits": {
- "description": "Array of benefits.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Sum",
- "None",
- "All",
- "AHUB",
- "Reservations"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "markups": {
- "description": "List of markups.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/Markup"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pricesheet": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "Markup": {
- "description": "The Markup model definition",
- "properties": {
- "percentage": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "Scope": {
- "description": "The Scope model definition",
- "properties": {
- "childScope": {
- "description": "The Scope model definition",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "Scope id",
- "type": "string"
- },
- "name": {
- "description": "Scope name",
- "type": "string"
- },
- "type": {
- "description": "Scope type",
- "type": "string"
- }
- },
- "type": "object"
- },
- "ShowbackRuleProperties": {
- "description": "The properties of a showback rule.",
- "oneOf": [
- {
- "description": "Represents CostAllocation showback rule model",
- "properties": {
- "details": {
- "description": "The CostAllocation properties to validate.",
- "oneOf": [
- {
- "$ref": "#/definitions/CostAllocationDetails"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "ruleType": {
- "enum": [
- "CostAllocation"
- ],
- "type": "string"
- }
- },
- "required": [
- "ruleType"
- ],
- "type": "object"
- },
- {
- "description": "Represents Custom price showback rule model",
- "properties": {
- "details": {
- "description": "The Custom price properties to validate.",
- "oneOf": [
- {
- "$ref": "#/definitions/CustomPriceDetails"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "ruleType": {
- "enum": [
- "CustomPrice"
- ],
- "type": "string"
- }
- },
- "required": [
- "ruleType"
- ],
- "type": "object"
- }
- ],
- "properties": {
- "description": {
- "description": "Description of a showback rule.",
- "type": "string"
- },
- "scopes": {
- "description": "List of authorized assigned scopes.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/Scope"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The current status of the showback rule.",
- "oneOf": [
- {
- "enum": [
- "NotActive",
- "Active"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2019-04-01-preview/Microsoft.CostManagement.json b/schemas/2019-04-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index abfb90bce2..0000000000
--- a/schemas/2019-04-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,846 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "budgets": {
- "description": "Microsoft.CostManagement/budgets",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-04-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Budget Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the budget.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/budgets"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-04-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "BudgetProperties": {
- "description": "The properties of the budget.",
- "properties": {
- "amount": {
- "description": "The total amount of cost to track with the budget",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "category": {
- "description": "The category of the budget, whether the budget tracks cost or usage.",
- "oneOf": [
- {
- "enum": [
- "Cost",
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "May be used to filter budgets.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notifications": {
- "description": "Dictionary of notifications associated with the budget. Budget can have up to five notifications.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/Notification"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeGrain": {
- "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.",
- "oneOf": [
- {
- "enum": [
- "Monthly",
- "Quarterly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than three months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "category",
- "amount",
- "timeGrain",
- "timePeriod"
- ],
- "type": "object"
- },
- "BudgetTimePeriod": {
- "description": "The start and end date for a budget.",
- "properties": {
- "endDate": {
- "description": "The end date for the budget. If not provided, we default this to 10 years from the start date.",
- "format": "date-time",
- "type": "string"
- },
- "startDate": {
- "description": "The start date for the budget.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "startDate"
- ],
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "Notification": {
- "description": "The notification associated with a budget.",
- "properties": {
- "contactEmails": {
- "description": "Email addresses to send the budget notification to when the threshold is exceeded.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactGroups": {
- "description": "Action groups to send the budget notification to when the threshold is exceeded.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactRoles": {
- "description": "Contact roles to send the budget notification to when the threshold is exceeded.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "enabled": {
- "description": "The notification is enabled or not.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "operator": {
- "description": "The comparison operator.",
- "oneOf": [
- {
- "enum": [
- "EqualTo",
- "GreaterThan",
- "GreaterThanOrEqualTo"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "threshold": {
- "description": "Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "enabled",
- "operator",
- "threshold",
- "contactEmails"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataset": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimension": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "not": {
- "description": "The logical \"NOT\" expression.",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tag": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2019-08-01/managementGroupDeploymentTemplate.json b/schemas/2019-08-01/managementGroupDeploymentTemplate.json
index e16fbec688..29e081fdda 100644
--- a/schemas/2019-08-01/managementGroupDeploymentTemplate.json
+++ b/schemas/2019-08-01/managementGroupDeploymentTemplate.json
@@ -749,111 +749,6 @@
{
"$ref": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Blueprint.json#/unknown_resourceDefinitions/blueprints_versions"
},
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#/managementGroup_resourceDefinitions/externalSubscriptions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-12-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-01-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-08-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-05-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
{
"$ref": "https://schema.management.azure.com/schemas/2020-01-01-preview/Microsoft.Insights.json#/managementGroup_resourceDefinitions/diagnosticSettings"
},
diff --git a/schemas/2019-08-01/tenantDeploymentTemplate.json b/schemas/2019-08-01/tenantDeploymentTemplate.json
index f5107e9e69..4d09c07dbc 100644
--- a/schemas/2019-08-01/tenantDeploymentTemplate.json
+++ b/schemas/2019-08-01/tenantDeploymentTemplate.json
@@ -760,84 +760,6 @@
{
"$ref": "https://schema.management.azure.com/schemas/2022-11-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
},
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#/tenant_resourceDefinitions/cloudConnectors"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#/tenant_resourceDefinitions/externalSubscriptions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/tenant_resourceDefinitions/settings"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-06-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-08-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-05-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
{
"$ref": "https://schema.management.azure.com/schemas/2015-01-14-preview/Microsoft.Intune.json#/tenant_resourceDefinitions/locations_androidPolicies"
},
diff --git a/schemas/2019-09-01/Microsoft.CostManagement.json b/schemas/2019-09-01/Microsoft.CostManagement.json
deleted file mode 100644
index 280925186c..0000000000
--- a/schemas/2019-09-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,603 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-09-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDeliveryDestination": {
- "description": "The destination information for the delivery of the export.",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- }
- },
- "required": [
- "resourceId",
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with a export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "recurrence"
- ],
- "type": "object"
- },
- "QueryAggregation": {
- "description": "The aggregation expression to be used in the query.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "QueryComparisonExpression": {
- "description": "The comparison expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "QueryDataset": {
- "description": "The definition of data present in the query.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/QueryAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the query.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Hourly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/QueryGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of sorting by columns in query.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/QuerySortingConfiguration"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryDatasetConfiguration": {
- "description": "The configuration of dataset in the query.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryDefinition": {
- "description": "The definition of a query.",
- "properties": {
- "dataset": {
- "description": "Has definition for data in this query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "TheLastWeek",
- "TheLastMonth",
- "TheLastYear",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the query.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "QueryFilter": {
- "description": "The filter expression to be used in the export.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimension": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "not": {
- "description": "The logical \"NOT\" expression.",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tag": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryGrouping": {
- "description": "The group by expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to group.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "QuerySortingConfiguration": {
- "description": "The configuration for sorting in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to use in sorting.",
- "type": "string"
- },
- "querySortingDirection": {
- "description": "The sorting direction",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryTimePeriod": {
- "description": "The start and end date for pulling data for the query.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2019-10-01/Microsoft.CostManagement.json b/schemas/2019-10-01/Microsoft.CostManagement.json
deleted file mode 100644
index 34dd1b0829..0000000000
--- a/schemas/2019-10-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,603 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-10-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDeliveryDestination": {
- "description": "The destination information for the delivery of the export.",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- }
- },
- "required": [
- "resourceId",
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with a export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "recurrence"
- ],
- "type": "object"
- },
- "QueryAggregation": {
- "description": "The aggregation expression to be used in the query.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "QueryComparisonExpression": {
- "description": "The comparison expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "QueryDataset": {
- "description": "The definition of data present in the query.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/QueryAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the query.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Hourly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/QueryGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of sorting by columns in query.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/QuerySortingConfiguration"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryDatasetConfiguration": {
- "description": "The configuration of dataset in the query.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryDefinition": {
- "description": "The definition of a query.",
- "properties": {
- "dataset": {
- "description": "Has definition for data in this query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "TheLastWeek",
- "TheLastMonth",
- "TheLastYear",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the query.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "QueryFilter": {
- "description": "The filter expression to be used in the export.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimension": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "not": {
- "description": "The logical \"NOT\" expression.",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tag": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryGrouping": {
- "description": "The group by expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to group.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "QuerySortingConfiguration": {
- "description": "The configuration for sorting in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to use in sorting.",
- "type": "string"
- },
- "querySortingDirection": {
- "description": "The sorting direction",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryTimePeriod": {
- "description": "The start and end date for pulling data for the query.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2019-11-01/Microsoft.CostManagement.json b/schemas/2019-11-01/Microsoft.CostManagement.json
deleted file mode 100644
index ec03a2319b..0000000000
--- a/schemas/2019-11-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,1286 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "tenant_resourceDefinitions": {
- "settings": {
- "description": "Microsoft.CostManagement/settings",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-11-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Name of the setting. Allowed values: myscope",
- "maxLength": 32,
- "type": "string"
- },
- "properties": {
- "description": "The properties of the setting.",
- "oneOf": [
- {
- "$ref": "#/definitions/SettingsProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/settings"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-11-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2019-11-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "CacheItem": {
- "properties": {
- "channel": {
- "description": "Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.",
- "type": "string"
- },
- "id": {
- "description": "Resource ID used by Resource Manager to uniquely identify the scope.",
- "type": "string"
- },
- "name": {
- "description": "Display name for the scope.",
- "type": "string"
- },
- "parent": {
- "description": "Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.",
- "type": "string"
- },
- "status": {
- "description": "Indicates the status of the scope. Status only applies to subscriptions and billing accounts.",
- "type": "string"
- },
- "subchannel": {
- "description": "Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "channel",
- "subchannel"
- ],
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of a query.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDatasetAutoGenerated"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the query.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the query.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "The destination information for the delivery of the export. To allow access to a storage account, you must register the account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services .",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- }
- },
- "required": [
- "resourceId",
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with a export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "recurrence"
- ],
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryAggregation": {
- "description": "The aggregation expression to be used in the query.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Avg",
- "Max",
- "Min",
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "QueryComparisonExpression": {
- "description": "The comparison expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "QueryDatasetAutoGenerated": {
- "description": "The definition of data present in the query.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/QueryAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryFilterAutoGenerated"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the query.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/QueryGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryDatasetConfiguration": {
- "description": "The configuration of dataset in the query.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryFilterAutoGenerated": {
- "description": "The filter expression to be used in the export.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/QueryComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "QueryGrouping": {
- "description": "The group by expression to be used in the query.",
- "properties": {
- "name": {
- "description": "The name of the column to group.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "QueryTimePeriod": {
- "description": "The start and end date for pulling data for the query.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Avg",
- "Max",
- "Min",
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tagKey": {
- "description": "Has comparison expression for a tag key",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tagValue": {
- "description": "Has comparison expression for a tag value",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "SettingsProperties": {
- "description": "The properties of the setting.",
- "properties": {
- "cache": {
- "description": "Array of scopes with additional details used by Cost Management in the Azure portal.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/CacheItem"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.",
- "type": "string"
- },
- "startOn": {
- "description": "Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.",
- "oneOf": [
- {
- "enum": [
- "LastUsed",
- "ScopePicker",
- "SpecificScope"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "scope"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2020-06-01/Microsoft.CostManagement.json b/schemas/2020-06-01/Microsoft.CostManagement.json
deleted file mode 100644
index b79b81d299..0000000000
--- a/schemas/2020-06-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,965 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2020-06-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2020-06-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "The destination information for the delivery of the export. To allow access to a storage account, you must register the account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services .",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- }
- },
- "required": [
- "resourceId",
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the execution history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent execution history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataset": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimension": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "not": {
- "description": "The logical \"NOT\" expression.",
- "oneOf": [
- {
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tag": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2020-12-01-preview/Microsoft.CostManagement.json b/schemas/2020-12-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index 0fa5b28933..0000000000
--- a/schemas/2020-12-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,381 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2020-12-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2020-12-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Azure Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the execution history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent execution history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2021-01-01/Microsoft.CostManagement.json b/schemas/2021-01-01/Microsoft.CostManagement.json
deleted file mode 100644
index d371817925..0000000000
--- a/schemas/2021-01-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,392 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2021-01-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2021-01-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Azure Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the execution history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for modern commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent execution history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2021-10-01/Microsoft.CostManagement.json b/schemas/2021-10-01/Microsoft.CostManagement.json
deleted file mode 100644
index cd8f172032..0000000000
--- a/schemas/2021-10-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,983 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2021-10-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2021-10-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the execution history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for modern commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent execution history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2022-04-01-preview/Microsoft.CostManagement.json b/schemas/2022-04-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index f09694f828..0000000000
--- a/schemas/2022-04-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,295 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-04-01-preview"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "FileDestination": {
- "description": "Destination of the view data. Currently only csv format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only csv format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope like 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2022-06-01-preview/Microsoft.CostManagement.json b/schemas/2022-06-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index 8c94880676..0000000000
--- a/schemas/2022-06-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,296 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2022-06-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-06-01-preview"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only csv format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only csv format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope like 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2022-08-01-preview/Microsoft.CostManagement.json b/schemas/2022-08-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index 245415542c..0000000000
--- a/schemas/2022-08-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,601 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2022-08-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-08-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2022-10-01-preview/Microsoft.CostManagement.json b/schemas/2022-10-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index aaaa5dc89e..0000000000
--- a/schemas/2022-10-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,642 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "settings": {
- "description": "Microsoft.CostManagement/settings",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Setting type.",
- "oneOf": [
- {
- "enum": [
- "taginheritance"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/settings"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2022-10-01/Microsoft.CostManagement.json b/schemas/2022-10-01/Microsoft.CostManagement.json
deleted file mode 100644
index 601d83db5c..0000000000
--- a/schemas/2022-10-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,1286 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-01"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the run history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent run history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only CSV format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only CSV format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "language": {
- "description": "Locale of the email.",
- "type": "string"
- },
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "regionalFormat": {
- "description": "Regional format used for formatting date/time and currency values in the email.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "TagKey",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notificationEmail": {
- "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.",
- "type": "string"
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope like 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled",
- "Expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dateRange": {
- "description": "Date range of the current view.",
- "type": "string"
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2022-10-05-preview/Microsoft.CostManagement.json b/schemas/2022-10-05-preview/Microsoft.CostManagement.json
deleted file mode 100644
index 8043b58357..0000000000
--- a/schemas/2022-10-05-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,752 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2022-10-05-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "extension_resourceDefinitions": {
- "markupRules": {
- "description": "Microsoft.CostManagement/markupRules",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-05-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Markup rule name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the markup rule.",
- "oneOf": [
- {
- "$ref": "#/definitions/MarkupRuleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/markupRules"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "unknown_resourceDefinitions": {
- "settings": {
- "description": "Microsoft.CostManagement/settings",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-05-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Setting type.",
- "oneOf": [
- {
- "enum": [
- "taginheritance"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/settings"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2022-10-05-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "CustomerMetadata": {
- "description": "The customer billing metadata",
- "properties": {
- "billingAccountId": {
- "description": "Customer billing account id",
- "type": "string"
- },
- "billingProfileId": {
- "description": "Customer billing profile id",
- "type": "string"
- }
- },
- "required": [
- "billingAccountId",
- "billingProfileId"
- ],
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "MarkupRuleProperties": {
- "description": "The properties of the markup rule.",
- "properties": {
- "customerDetails": {
- "description": "Customer information for the markup rule.",
- "oneOf": [
- {
- "$ref": "#/definitions/CustomerMetadata"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "description": {
- "description": "The description of the markup rule.",
- "type": "string"
- },
- "endDate": {
- "description": "Ending date of the markup rule.",
- "format": "date-time",
- "type": "string"
- },
- "percentage": {
- "description": "The markup percentage of the rule.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "Starting date of the markup rule.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "percentage",
- "startDate",
- "customerDetails"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "Tag",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2023-03-01/Microsoft.CostManagement.json b/schemas/2023-03-01/Microsoft.CostManagement.json
deleted file mode 100644
index aacf0c4c0c..0000000000
--- a/schemas/2023-03-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,1291 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-03-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-03-01"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-03-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the run history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent run history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only CSV format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only CSV format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "language": {
- "description": "Locale of the email.",
- "type": "string"
- },
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "regionalFormat": {
- "description": "Regional format used for formatting date/time and currency values in the email.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "TagKey",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notificationEmail": {
- "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.",
- "type": "string"
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled",
- "Expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dateRange": {
- "description": "Date range of the current view.",
- "type": "string"
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "modifiedOn": {
- "description": "Date when the user last modified this view.",
- "format": "date-time",
- "type": "string"
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2023-04-01-preview/Microsoft.CostManagement.json b/schemas/2023-04-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index 8696e77415..0000000000
--- a/schemas/2023-04-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,1768 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "budgets": {
- "description": "Microsoft.CostManagement/budgets",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-04-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Budget Name.",
- "oneOf": [
- {
- "maxLength": 63,
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "properties": {
- "description": "The properties of the budget.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/budgets"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-04-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "identity": {
- "description": "The managed identity associated with Export",
- "oneOf": [
- {
- "$ref": "#/definitions/SystemAssignedServiceIdentity"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "location": {
- "description": "The location of the Export's managed identity. Only required when utilizing managed identity.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-04-01-preview"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-04-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "BudgetComparisonExpression": {
- "description": "The comparison expression to be used in the budgets.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "BudgetFilter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/BudgetFilterProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetFilterProperties": {
- "description": "The Dimensions or Tags to filter a budget by.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetProperties": {
- "description": "The properties of the budget.",
- "properties": {
- "amount": {
- "description": "The total amount of cost to track with the budget.\n\n Supported for CategoryType(s): Cost.\n\n Required for CategoryType(s): Cost.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "category": {
- "description": "The category of the budget.\n- 'Cost' defines a Budget.\n- 'ReservationUtilization' defines a Reservation Utilization Alert Rule.",
- "oneOf": [
- {
- "enum": [
- "Cost",
- "ReservationUtilization"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notifications": {
- "description": "Dictionary of notifications associated with the budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n- Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted.\n- Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/Notification"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeGrain": {
- "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported timeGrainTypes for **CategoryType: Cost**\n\n- Monthly\n- Quarterly\n- Annually\n- BillingMonth*\n- BillingQuarter*\n- BillingAnnual*\n\n *only supported for Web Direct customers.\n\n Supported timeGrainTypes for **CategoryType: ReservationUtilization**\n- Last7Days\n- Last30Days\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Monthly",
- "Quarterly",
- "Annually",
- "BillingMonth",
- "BillingQuarter",
- "BillingAnnual",
- "Last7Days",
- "Last30Days"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "category",
- "timeGrain",
- "timePeriod"
- ],
- "type": "object"
- },
- "BudgetTimePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "endDate": {
- "description": "The end date for the budget.\n\n- Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.\n\n- Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.",
- "format": "date-time",
- "type": "string"
- },
- "startDate": {
- "description": "The start date for the budget.\n\n- Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period.\n\n- Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "startDate"
- ],
- "type": "object"
- },
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the run history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent run history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only CSV format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only CSV format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "Notification": {
- "description": "The notification associated with a budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "contactEmails": {
- "description": "Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactGroups": {
- "description": "Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactRoles": {
- "description": "Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "enabled": {
- "description": "The notification is enabled or not.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "frequency": {
- "description": "Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).\n\n Supported for CategoryType(s): ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "locale": {
- "description": "Language in which the recipient will receive the notification, \n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "en-us",
- "ja-jp",
- "zh-cn",
- "de-de",
- "es-es",
- "fr-fr",
- "it-it",
- "ko-kr",
- "pt-br",
- "ru-ru",
- "zh-tw",
- "cs-cz",
- "pl-pl",
- "tr-tr",
- "da-dk",
- "en-gb",
- "hu-hu",
- "nb-no",
- "nl-nl",
- "pt-pt",
- "sv-se"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "operator": {
- "description": "The comparison operator.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported operators for **CategoryType: Cost**\n- GreaterThan\n- GreaterThanOrEqualTo\n\n Supported operators for **CategoryType: ReservationUtilization**\n- LessThan",
- "oneOf": [
- {
- "enum": [
- "EqualTo",
- "GreaterThan",
- "GreaterThanOrEqualTo",
- "LessThan"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "threshold": {
- "description": "Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold.\n\n **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "thresholdType": {
- "description": "The type of threshold.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "enum": [
- "Actual",
- "Forecasted"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "enabled",
- "operator",
- "threshold",
- "contactEmails"
- ],
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "language": {
- "description": "Locale of the email.",
- "type": "string"
- },
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "regionalFormat": {
- "description": "Regional format used for formatting date/time and currency values in the email.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "TagKey",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notificationEmail": {
- "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.",
- "type": "string"
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope like 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled",
- "Expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- },
- "SystemAssignedServiceIdentity": {
- "description": "Managed service identity (either system assigned, or none)",
- "properties": {
- "type": {
- "description": "Type of managed service identity (either system assigned, or none).",
- "oneOf": [
- {
- "enum": [
- "None",
- "SystemAssigned"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dateRange": {
- "description": "Date range of the current view.",
- "type": "string"
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "modifiedOn": {
- "description": "Date when the user last modified this view.",
- "format": "date-time",
- "type": "string"
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2023-07-01-preview/Microsoft.CostManagement.json b/schemas/2023-07-01-preview/Microsoft.CostManagement.json
deleted file mode 100644
index e4459933fc..0000000000
--- a/schemas/2023-07-01-preview/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,1430 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "unknown_resourceDefinitions": {
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-07-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "identity": {
- "description": "The managed identity associated with Export",
- "oneOf": [
- {
- "$ref": "#/definitions/SystemAssignedServiceIdentity"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "location": {
- "description": "The location of the Export's managed identity. Only required when utilizing managed identity.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-07-01-preview"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-07-01-preview"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently 'Daily' is supported for most cases.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration.",
- "properties": {
- "columns": {
- "description": "This is on path to deprecation and will not be supported going forward.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dataVersion": {
- "description": "The data version for the selected for the export. If not provided then the export will default to latest data version.",
- "type": "string"
- },
- "filters": {
- "description": "Filters associated with the data sets.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/FilterItems"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom",
- "TheCurrentMonth"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost",
- "FocusCost",
- "PriceSheet",
- "ReservationTransactions",
- "ReservationRecommendations",
- "ReservationDetails"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- },
- "type": {
- "description": "The export delivery destination type. Currently only 'AzureBlob' is supported.",
- "oneOf": [
- {
- "enum": [
- "AzureBlob"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the run history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "compressionMode": {
- "description": "Allow customers to select compress data(gzip) for exports. This setting will enable destination file compression scheme at runtime. By default set to None.",
- "oneOf": [
- {
- "enum": [
- "gzip",
- "None"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dataOverwriteBehavior": {
- "description": "Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport.",
- "oneOf": [
- {
- "enum": [
- "OverwritePreviousReport",
- "CreateNewReport"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "exportDescription": {
- "description": "The export description set by customer at time of export creation/update.",
- "type": "string"
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent run history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused. 'SystemSuspended' can only be set by export service.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive",
- "SystemSuspended"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 1 month.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only CSV format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only CSV format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "FilterItems": {
- "description": "Will contain the filter name and value to operate on. This is currently only supported for Export Definition type of ReservationRecommendations.",
- "properties": {
- "name": {
- "description": "The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType']",
- "oneOf": [
- {
- "enum": [
- "ReservationScope",
- "ResourceType",
- "LookBackPeriod"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "value": {
- "description": "Value to filter by. Currently values supported per name are, for 'ReservationScope' supported values are ['Single', 'Shared'], for 'LookBackPeriod' supported values are ['Last7Days', 'Last30Days', 'Last60Days'] and for 'ResourceType' supported values are ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple'].",
- "type": "string"
- }
- },
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "language": {
- "description": "Locale of the email.",
- "type": "string"
- },
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "regionalFormat": {
- "description": "Regional format used for formatting date/time and currency values in the email.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "TagKey",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notificationEmail": {
- "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.",
- "type": "string"
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled",
- "Expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- },
- "SystemAssignedServiceIdentity": {
- "description": "Managed service identity (either system assigned, or none)",
- "properties": {
- "type": {
- "description": "Type of managed service identity (either system assigned, or none).",
- "oneOf": [
- {
- "enum": [
- "None",
- "SystemAssigned"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dateRange": {
- "description": "Date range of the current view.",
- "type": "string"
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "modifiedOn": {
- "description": "Date when the user last modified this view.",
- "format": "date-time",
- "type": "string"
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2023-08-01/Microsoft.CostManagement.json b/schemas/2023-08-01/Microsoft.CostManagement.json
deleted file mode 100644
index ca00dee9eb..0000000000
--- a/schemas/2023-08-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,2057 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "extension_resourceDefinitions": {
- "costAllocationRules": {
- "description": "Microsoft.CostManagement/costAllocationRules",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-08-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.",
- "oneOf": [
- {
- "pattern": "[A-Za-z0-9\\-_]+",
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "properties": {
- "description": "Cost allocation rule properties",
- "oneOf": [
- {
- "$ref": "#/definitions/CostAllocationRuleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/costAllocationRules"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "unknown_resourceDefinitions": {
- "budgets": {
- "description": "Microsoft.CostManagement/budgets",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-08-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Budget Name.",
- "oneOf": [
- {
- "maxLength": 63,
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "properties": {
- "description": "The properties of the budget.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/budgets"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-08-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "identity": {
- "description": "The managed identity associated with Export",
- "oneOf": [
- {
- "$ref": "#/definitions/SystemAssignedServiceIdentity"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "location": {
- "description": "The location of the Export's managed identity. Only required when utilizing managed identity.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-08-01"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "settings": {
- "description": "Microsoft.CostManagement/settings",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-08-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Setting type.",
- "oneOf": [
- {
- "enum": [
- "taginheritance"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/settings"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-08-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "BudgetComparisonExpression": {
- "description": "The comparison expression to be used in the budgets.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "BudgetFilter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/BudgetFilterProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetFilterProperties": {
- "description": "The Dimensions or Tags to filter a budget by.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetProperties": {
- "description": "The properties of the budget.",
- "properties": {
- "amount": {
- "description": "The total amount of cost to track with the budget.\n\n Supported for CategoryType(s): Cost.\n\n Required for CategoryType(s): Cost.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "category": {
- "description": "The category of the budget.\n- 'Cost' defines a Budget.\n- 'ReservationUtilization' defines a Reservation Utilization Alert Rule.",
- "oneOf": [
- {
- "enum": [
- "Cost",
- "ReservationUtilization"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notifications": {
- "description": "Dictionary of notifications associated with the budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n- Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted.\n- Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/Notification"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeGrain": {
- "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported timeGrainTypes for **CategoryType: Cost**\n\n- Monthly\n- Quarterly\n- Annually\n- BillingMonth*\n- BillingQuarter*\n- BillingAnnual*\n\n *only supported for Web Direct customers.\n\n Supported timeGrainTypes for **CategoryType: ReservationUtilization**\n- Last7Days\n- Last30Days\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Monthly",
- "Quarterly",
- "Annually",
- "BillingMonth",
- "BillingQuarter",
- "BillingAnnual",
- "Last7Days",
- "Last30Days"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "category",
- "timeGrain",
- "timePeriod"
- ],
- "type": "object"
- },
- "BudgetTimePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "endDate": {
- "description": "The end date for the budget.\n\n- Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.\n\n- Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.",
- "format": "date-time",
- "type": "string"
- },
- "startDate": {
- "description": "The start date for the budget.\n\n- Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period.\n\n- Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "startDate"
- ],
- "type": "object"
- },
- "CostAllocationProportion": {
- "description": "Target resources and allocation",
- "properties": {
- "name": {
- "description": "Target resource for cost allocation",
- "type": "string"
- },
- "percentage": {
- "description": "Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "percentage"
- ],
- "type": "object"
- },
- "CostAllocationRuleDetails": {
- "description": "Resource details of the cost allocation rule",
- "properties": {
- "sourceResources": {
- "description": "Source resources for cost allocation. At this time, this list can contain no more than one element.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/SourceCostAllocationResource"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "targetResources": {
- "description": "Target resources for cost allocation. At this time, this list can contain no more than one element.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/TargetCostAllocationResource"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "CostAllocationRuleProperties": {
- "description": "The properties of a cost allocation rule",
- "properties": {
- "description": {
- "description": "Description of a cost allocation rule.",
- "type": "string"
- },
- "details": {
- "description": "Resource information for the cost allocation rule",
- "oneOf": [
- {
- "$ref": "#/definitions/CostAllocationRuleDetails"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "Status of the rule",
- "oneOf": [
- {
- "enum": [
- "NotActive",
- "Active",
- "Processing"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "details",
- "status"
- ],
- "type": "object"
- },
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the run history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent run history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only CSV format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only CSV format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "Notification": {
- "description": "The notification associated with a budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "contactEmails": {
- "description": "Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactGroups": {
- "description": "Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactRoles": {
- "description": "Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "enabled": {
- "description": "The notification is enabled or not.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "frequency": {
- "description": "Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).\n\n Supported for CategoryType(s): ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "locale": {
- "description": "Language in which the recipient will receive the notification, \n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "en-us",
- "ja-jp",
- "zh-cn",
- "de-de",
- "es-es",
- "fr-fr",
- "it-it",
- "ko-kr",
- "pt-br",
- "ru-ru",
- "zh-tw",
- "cs-cz",
- "pl-pl",
- "tr-tr",
- "da-dk",
- "en-gb",
- "hu-hu",
- "nb-no",
- "nl-nl",
- "pt-pt",
- "sv-se"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "operator": {
- "description": "The comparison operator.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported operators for **CategoryType: Cost**\n- GreaterThan\n- GreaterThanOrEqualTo\n\n Supported operators for **CategoryType: ReservationUtilization**\n- LessThan",
- "oneOf": [
- {
- "enum": [
- "EqualTo",
- "GreaterThan",
- "GreaterThanOrEqualTo",
- "LessThan"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "threshold": {
- "description": "Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold.\n\n **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "thresholdType": {
- "description": "The type of threshold.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "enum": [
- "Actual",
- "Forecasted"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "enabled",
- "operator",
- "threshold",
- "contactEmails"
- ],
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "language": {
- "description": "Locale of the email.",
- "type": "string"
- },
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "regionalFormat": {
- "description": "Regional format used for formatting date/time and currency values in the email.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "TagKey",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notificationEmail": {
- "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.",
- "type": "string"
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled",
- "Expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- },
- "SourceCostAllocationResource": {
- "description": "Source resources for cost allocation",
- "properties": {
- "name": {
- "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag",
- "type": "string"
- },
- "resourceType": {
- "description": "Type of resources contained in this cost allocation rule",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "Tag"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Source Resources for cost allocation. This list cannot contain more than 25 values.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "values",
- "resourceType",
- "name"
- ],
- "type": "object"
- },
- "SystemAssignedServiceIdentity": {
- "description": "Managed service identity (either system assigned, or none)",
- "properties": {
- "type": {
- "description": "Type of managed service identity (either system assigned, or none).",
- "oneOf": [
- {
- "enum": [
- "None",
- "SystemAssigned"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "TargetCostAllocationResource": {
- "description": "Target resources for cost allocation.",
- "properties": {
- "name": {
- "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag",
- "type": "string"
- },
- "policyType": {
- "description": "Method of cost allocation for the rule",
- "oneOf": [
- {
- "enum": [
- "FixedProportion"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "resourceType": {
- "description": "Type of resources contained in this cost allocation rule",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "Tag"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Target resources for cost allocation. This list cannot contain more than 25 values.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/CostAllocationProportion"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "values",
- "policyType",
- "resourceType",
- "name"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dateRange": {
- "description": "Date range of the current view.",
- "type": "string"
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "modifiedOn": {
- "description": "Date when the user last modified this view.",
- "format": "date-time",
- "type": "string"
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2023-09-01/Microsoft.CostManagement.json b/schemas/2023-09-01/Microsoft.CostManagement.json
deleted file mode 100644
index 065c1492ac..0000000000
--- a/schemas/2023-09-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,2057 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "extension_resourceDefinitions": {
- "costAllocationRules": {
- "description": "Microsoft.CostManagement/costAllocationRules",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-09-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.",
- "oneOf": [
- {
- "pattern": "[A-Za-z0-9\\-_]+",
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "properties": {
- "description": "Cost allocation rule properties",
- "oneOf": [
- {
- "$ref": "#/definitions/CostAllocationRuleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/costAllocationRules"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "unknown_resourceDefinitions": {
- "budgets": {
- "description": "Microsoft.CostManagement/budgets",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-09-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Budget Name.",
- "oneOf": [
- {
- "maxLength": 63,
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "properties": {
- "description": "The properties of the budget.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/budgets"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-09-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "identity": {
- "description": "The managed identity associated with Export",
- "oneOf": [
- {
- "$ref": "#/definitions/SystemAssignedServiceIdentity"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "location": {
- "description": "The location of the Export's managed identity. Only required when utilizing managed identity.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-09-01"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "settings": {
- "description": "Microsoft.CostManagement/settings",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-09-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Setting type.",
- "oneOf": [
- {
- "enum": [
- "taginheritance"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/settings"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-09-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "BudgetComparisonExpression": {
- "description": "The comparison expression to be used in the budgets.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "BudgetFilter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/BudgetFilterProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetFilterProperties": {
- "description": "The Dimensions or Tags to filter a budget by.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetProperties": {
- "description": "The properties of the budget.",
- "properties": {
- "amount": {
- "description": "The total amount of cost to track with the budget.\n\n Supported for CategoryType(s): Cost.\n\n Required for CategoryType(s): Cost.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "category": {
- "description": "The category of the budget.\n- 'Cost' defines a Budget.\n- 'ReservationUtilization' defines a Reservation Utilization Alert Rule.",
- "oneOf": [
- {
- "enum": [
- "Cost",
- "ReservationUtilization"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notifications": {
- "description": "Dictionary of notifications associated with the budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n- Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted.\n- Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/Notification"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeGrain": {
- "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported timeGrainTypes for **CategoryType: Cost**\n\n- Monthly\n- Quarterly\n- Annually\n- BillingMonth*\n- BillingQuarter*\n- BillingAnnual*\n\n *only supported for Web Direct customers.\n\n Supported timeGrainTypes for **CategoryType: ReservationUtilization**\n- Last7Days\n- Last30Days\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Monthly",
- "Quarterly",
- "Annually",
- "BillingMonth",
- "BillingQuarter",
- "BillingAnnual",
- "Last7Days",
- "Last30Days"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "category",
- "timeGrain",
- "timePeriod"
- ],
- "type": "object"
- },
- "BudgetTimePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "endDate": {
- "description": "The end date for the budget.\n\n- Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.\n\n- Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.",
- "format": "date-time",
- "type": "string"
- },
- "startDate": {
- "description": "The start date for the budget.\n\n- Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period.\n\n- Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "startDate"
- ],
- "type": "object"
- },
- "CostAllocationProportion": {
- "description": "Target resources and allocation",
- "properties": {
- "name": {
- "description": "Target resource for cost allocation",
- "type": "string"
- },
- "percentage": {
- "description": "Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "percentage"
- ],
- "type": "object"
- },
- "CostAllocationRuleDetails": {
- "description": "Resource details of the cost allocation rule",
- "properties": {
- "sourceResources": {
- "description": "Source resources for cost allocation. At this time, this list can contain no more than one element.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/SourceCostAllocationResource"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "targetResources": {
- "description": "Target resources for cost allocation. At this time, this list can contain no more than one element.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/TargetCostAllocationResource"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "CostAllocationRuleProperties": {
- "description": "The properties of a cost allocation rule",
- "properties": {
- "description": {
- "description": "Description of a cost allocation rule.",
- "type": "string"
- },
- "details": {
- "description": "Resource information for the cost allocation rule",
- "oneOf": [
- {
- "$ref": "#/definitions/CostAllocationRuleDetails"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "Status of the rule",
- "oneOf": [
- {
- "enum": [
- "NotActive",
- "Active",
- "Processing"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "details",
- "status"
- ],
- "type": "object"
- },
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the run history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent run history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only CSV format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only CSV format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "Notification": {
- "description": "The notification associated with a budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "contactEmails": {
- "description": "Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactGroups": {
- "description": "Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactRoles": {
- "description": "Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "enabled": {
- "description": "The notification is enabled or not.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "frequency": {
- "description": "Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).\n\n Supported for CategoryType(s): ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "locale": {
- "description": "Language in which the recipient will receive the notification, \n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "en-us",
- "ja-jp",
- "zh-cn",
- "de-de",
- "es-es",
- "fr-fr",
- "it-it",
- "ko-kr",
- "pt-br",
- "ru-ru",
- "zh-tw",
- "cs-cz",
- "pl-pl",
- "tr-tr",
- "da-dk",
- "en-gb",
- "hu-hu",
- "nb-no",
- "nl-nl",
- "pt-pt",
- "sv-se"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "operator": {
- "description": "The comparison operator.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported operators for **CategoryType: Cost**\n- GreaterThan\n- GreaterThanOrEqualTo\n\n Supported operators for **CategoryType: ReservationUtilization**\n- LessThan",
- "oneOf": [
- {
- "enum": [
- "EqualTo",
- "GreaterThan",
- "GreaterThanOrEqualTo",
- "LessThan"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "threshold": {
- "description": "Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold.\n\n **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "thresholdType": {
- "description": "The type of threshold.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "enum": [
- "Actual",
- "Forecasted"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "enabled",
- "operator",
- "threshold",
- "contactEmails"
- ],
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "language": {
- "description": "Locale of the email.",
- "type": "string"
- },
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "regionalFormat": {
- "description": "Regional format used for formatting date/time and currency values in the email.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "TagKey",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notificationEmail": {
- "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.",
- "type": "string"
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled",
- "Expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- },
- "SourceCostAllocationResource": {
- "description": "Source resources for cost allocation",
- "properties": {
- "name": {
- "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag",
- "type": "string"
- },
- "resourceType": {
- "description": "Type of resources contained in this cost allocation rule",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "Tag"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Source Resources for cost allocation. This list cannot contain more than 25 values.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "values",
- "resourceType",
- "name"
- ],
- "type": "object"
- },
- "SystemAssignedServiceIdentity": {
- "description": "Managed service identity (either system assigned, or none)",
- "properties": {
- "type": {
- "description": "Type of managed service identity (either system assigned, or none).",
- "oneOf": [
- {
- "enum": [
- "None",
- "SystemAssigned"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "TargetCostAllocationResource": {
- "description": "Target resources for cost allocation.",
- "properties": {
- "name": {
- "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag",
- "type": "string"
- },
- "policyType": {
- "description": "Method of cost allocation for the rule",
- "oneOf": [
- {
- "enum": [
- "FixedProportion"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "resourceType": {
- "description": "Type of resources contained in this cost allocation rule",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "Tag"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Target resources for cost allocation. This list cannot contain more than 25 values.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/CostAllocationProportion"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "values",
- "policyType",
- "resourceType",
- "name"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dateRange": {
- "description": "Date range of the current view.",
- "type": "string"
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "modifiedOn": {
- "description": "Date when the user last modified this view.",
- "format": "date-time",
- "type": "string"
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/2023-11-01/Microsoft.CostManagement.json b/schemas/2023-11-01/Microsoft.CostManagement.json
deleted file mode 100644
index dc668cb8b8..0000000000
--- a/schemas/2023-11-01/Microsoft.CostManagement.json
+++ /dev/null
@@ -1,2057 +0,0 @@
-{
- "id": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#",
- "title": "Microsoft.CostManagement",
- "description": "Microsoft CostManagement Resource Types",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "extension_resourceDefinitions": {
- "costAllocationRules": {
- "description": "Microsoft.CostManagement/costAllocationRules",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-11-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.",
- "oneOf": [
- {
- "pattern": "[A-Za-z0-9\\-_]+",
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "properties": {
- "description": "Cost allocation rule properties",
- "oneOf": [
- {
- "$ref": "#/definitions/CostAllocationRuleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/costAllocationRules"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "unknown_resourceDefinitions": {
- "budgets": {
- "description": "Microsoft.CostManagement/budgets",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-11-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "Budget Name.",
- "oneOf": [
- {
- "maxLength": 63,
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "properties": {
- "description": "The properties of the budget.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/budgets"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "exports": {
- "description": "Microsoft.CostManagement/exports",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-11-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "identity": {
- "description": "The managed identity associated with Export",
- "oneOf": [
- {
- "$ref": "#/definitions/SystemAssignedServiceIdentity"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "location": {
- "description": "The location of the Export's managed identity. Only required when utilizing managed identity.",
- "type": "string"
- },
- "name": {
- "description": "Export Name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/exports"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "scheduledActions": {
- "description": "Microsoft.CostManagement/scheduledActions",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-11-01"
- ],
- "type": "string"
- },
- "kind": {
- "description": "Kind of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Email",
- "InsightAlert"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduledActionProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/scheduledActions"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "settings": {
- "description": "Microsoft.CostManagement/settings",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-11-01"
- ],
- "type": "string"
- },
- "name": {
- "description": "Setting type.",
- "oneOf": [
- {
- "enum": [
- "taginheritance"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/settings"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "apiVersion",
- "type"
- ],
- "type": "object"
- },
- "views": {
- "description": "Microsoft.CostManagement/views",
- "properties": {
- "apiVersion": {
- "enum": [
- "2023-11-01"
- ],
- "type": "string"
- },
- "eTag": {
- "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
- "type": "string"
- },
- "name": {
- "description": "View name",
- "type": "string"
- },
- "properties": {
- "description": "The properties of the view.",
- "oneOf": [
- {
- "$ref": "#/definitions/ViewProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "enum": [
- "Microsoft.CostManagement/views"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "properties",
- "apiVersion",
- "type"
- ],
- "type": "object"
- }
- },
- "definitions": {
- "BudgetComparisonExpression": {
- "description": "The comparison expression to be used in the budgets.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "BudgetFilter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/BudgetFilterProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetFilterProperties": {
- "description": "The Dimensions or Tags to filter a budget by.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "dimensions": {
- "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "BudgetProperties": {
- "description": "The properties of the budget.",
- "properties": {
- "amount": {
- "description": "The total amount of cost to track with the budget.\n\n Supported for CategoryType(s): Cost.\n\n Required for CategoryType(s): Cost.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "category": {
- "description": "The category of the budget.\n- 'Cost' defines a Budget.\n- 'ReservationUtilization' defines a Reservation Utilization Alert Rule.",
- "oneOf": [
- {
- "enum": [
- "Cost",
- "ReservationUtilization"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notifications": {
- "description": "Dictionary of notifications associated with the budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n- Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted.\n- Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/Notification"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeGrain": {
- "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported timeGrainTypes for **CategoryType: Cost**\n\n- Monthly\n- Quarterly\n- Annually\n- BillingMonth*\n- BillingQuarter*\n- BillingAnnual*\n\n *only supported for Web Direct customers.\n\n Supported timeGrainTypes for **CategoryType: ReservationUtilization**\n- Last7Days\n- Last30Days\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Monthly",
- "Quarterly",
- "Annually",
- "BillingMonth",
- "BillingQuarter",
- "BillingAnnual",
- "Last7Days",
- "Last30Days"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "$ref": "#/definitions/BudgetTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "category",
- "timeGrain",
- "timePeriod"
- ],
- "type": "object"
- },
- "BudgetTimePeriod": {
- "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "endDate": {
- "description": "The end date for the budget.\n\n- Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.\n\n- Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.",
- "format": "date-time",
- "type": "string"
- },
- "startDate": {
- "description": "The start date for the budget.\n\n- Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period.\n\n- Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "startDate"
- ],
- "type": "object"
- },
- "CostAllocationProportion": {
- "description": "Target resources and allocation",
- "properties": {
- "name": {
- "description": "Target resource for cost allocation",
- "type": "string"
- },
- "percentage": {
- "description": "Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "percentage"
- ],
- "type": "object"
- },
- "CostAllocationRuleDetails": {
- "description": "Resource details of the cost allocation rule",
- "properties": {
- "sourceResources": {
- "description": "Source resources for cost allocation. At this time, this list can contain no more than one element.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/SourceCostAllocationResource"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "targetResources": {
- "description": "Target resources for cost allocation. At this time, this list can contain no more than one element.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/TargetCostAllocationResource"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "CostAllocationRuleProperties": {
- "description": "The properties of a cost allocation rule",
- "properties": {
- "description": {
- "description": "Description of a cost allocation rule.",
- "type": "string"
- },
- "details": {
- "description": "Resource information for the cost allocation rule",
- "oneOf": [
- {
- "$ref": "#/definitions/CostAllocationRuleDetails"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "Status of the rule",
- "oneOf": [
- {
- "enum": [
- "NotActive",
- "Active",
- "Processing"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "details",
- "status"
- ],
- "type": "object"
- },
- "ExportDataset": {
- "description": "The definition for data in the export.",
- "properties": {
- "configuration": {
- "description": "The export dataset configuration.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the export. Currently only 'Daily' is supported.",
- "oneOf": [
- {
- "enum": [
- "Daily"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDatasetConfiguration": {
- "description": "The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include all available columns.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportDefinition": {
- "description": "The definition of an export.",
- "properties": {
- "dataSet": {
- "description": "The definition for data in the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "MonthToDate",
- "BillingMonthToDate",
- "TheLastMonth",
- "TheLastBillingMonth",
- "WeekToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.",
- "oneOf": [
- {
- "enum": [
- "Usage",
- "ActualCost",
- "AmortizedCost"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ExportDeliveryDestination": {
- "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).",
- "properties": {
- "container": {
- "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.",
- "type": "string"
- },
- "resourceId": {
- "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.",
- "type": "string"
- },
- "rootFolderPath": {
- "description": "The name of the directory where exports will be uploaded.",
- "type": "string"
- },
- "sasToken": {
- "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.",
- "type": "string"
- },
- "storageAccount": {
- "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.",
- "type": "string"
- }
- },
- "required": [
- "container"
- ],
- "type": "object"
- },
- "ExportDeliveryInfo": {
- "description": "The delivery information associated with a export.",
- "properties": {
- "destination": {
- "description": "Has destination for the export being delivered.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "destination"
- ],
- "type": "object"
- },
- "ExportExecutionListResult": {
- "description": "Result of listing the run history of an export.",
- "properties": {},
- "type": "object"
- },
- "ExportProperties": {
- "description": "The properties of the export.",
- "properties": {
- "definition": {
- "description": "Has the definition for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "deliveryInfo": {
- "description": "Has delivery information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportDeliveryInfo"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "format": {
- "description": "The format of the export being delivered. Currently only 'Csv' is supported.",
- "oneOf": [
- {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "partitionData": {
- "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. Note: this option is currently available only for Microsoft Customer Agreement commerce scopes.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "runHistory": {
- "description": "If requested, has the most recent run history for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportExecutionListResult"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "schedule": {
- "description": "Has schedule information for the export.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportSchedule"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "deliveryInfo",
- "definition"
- ],
- "type": "object"
- },
- "ExportRecurrencePeriod": {
- "description": "The start and end date for recurrence schedule.",
- "properties": {
- "from": {
- "description": "The start date of recurrence.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date of recurrence.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from"
- ],
- "type": "object"
- },
- "ExportSchedule": {
- "description": "The schedule associated with the export.",
- "properties": {
- "recurrence": {
- "description": "The schedule recurrence.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly",
- "Annually"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "recurrencePeriod": {
- "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.",
- "oneOf": [
- {
- "$ref": "#/definitions/ExportRecurrencePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "status": {
- "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused.",
- "oneOf": [
- {
- "enum": [
- "Active",
- "Inactive"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ExportTimePeriod": {
- "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 3 months.",
- "properties": {
- "from": {
- "description": "The start date for export data.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date for export data.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "FileDestination": {
- "description": "Destination of the view data. This is optional. Currently only CSV format is supported.",
- "properties": {
- "fileFormats": {
- "description": "Destination of the view data. Currently only CSV format is supported.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Csv"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "KpiProperties": {
- "description": "Each KPI must contain a 'type' and 'enabled' key.",
- "properties": {
- "enabled": {
- "description": "show the KPI in the UI?",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "id": {
- "description": "ID of resource related to metric (budget).",
- "type": "string"
- },
- "type": {
- "description": "KPI type (Forecast, Budget).",
- "oneOf": [
- {
- "enum": [
- "Forecast",
- "Budget"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "Notification": {
- "description": "The notification associated with a budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "properties": {
- "contactEmails": {
- "description": "Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactGroups": {
- "description": "Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "contactRoles": {
- "description": "Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "enabled": {
- "description": "The notification is enabled or not.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "frequency": {
- "description": "Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).\n\n Supported for CategoryType(s): ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "locale": {
- "description": "Language in which the recipient will receive the notification, \n\n Supported for CategoryType(s): Cost, ReservationUtilization.",
- "oneOf": [
- {
- "enum": [
- "en-us",
- "ja-jp",
- "zh-cn",
- "de-de",
- "es-es",
- "fr-fr",
- "it-it",
- "ko-kr",
- "pt-br",
- "ru-ru",
- "zh-tw",
- "cs-cz",
- "pl-pl",
- "tr-tr",
- "da-dk",
- "en-gb",
- "hu-hu",
- "nb-no",
- "nl-nl",
- "pt-pt",
- "sv-se"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "operator": {
- "description": "The comparison operator.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported operators for **CategoryType: Cost**\n- GreaterThan\n- GreaterThanOrEqualTo\n\n Supported operators for **CategoryType: ReservationUtilization**\n- LessThan",
- "oneOf": [
- {
- "enum": [
- "EqualTo",
- "GreaterThan",
- "GreaterThanOrEqualTo",
- "LessThan"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "threshold": {
- "description": "Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold.\n\n **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.",
- "oneOf": [
- {
- "type": "number"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "thresholdType": {
- "description": "The type of threshold.\n\n Supported for CategoryType(s): Cost.",
- "oneOf": [
- {
- "enum": [
- "Actual",
- "Forecasted"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "enabled",
- "operator",
- "threshold",
- "contactEmails"
- ],
- "type": "object"
- },
- "NotificationProperties": {
- "description": "The properties of the scheduled action notification.",
- "properties": {
- "language": {
- "description": "Locale of the email.",
- "type": "string"
- },
- "message": {
- "description": "Optional message to be added in the email. Length is limited to 250 characters.",
- "type": "string"
- },
- "regionalFormat": {
- "description": "Regional format used for formatting date/time and currency values in the email.",
- "type": "string"
- },
- "subject": {
- "description": "Subject of the email. Length is limited to 70 characters.",
- "type": "string"
- },
- "to": {
- "description": "Array of email addresses.",
- "oneOf": [
- {
- "items": {
- "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$",
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "to",
- "subject"
- ],
- "type": "object"
- },
- "PivotProperties": {
- "description": "Each pivot must contain a 'type' and 'name'.",
- "properties": {
- "name": {
- "description": "Data field to show in view.",
- "type": "string"
- },
- "type": {
- "description": "Data type to show in view.",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "TagKey"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigAggregation": {
- "description": "The aggregation expression to be used in the report.",
- "properties": {
- "function": {
- "description": "The name of the aggregation function to use.",
- "oneOf": [
- {
- "enum": [
- "Sum"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to aggregate.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "function"
- ],
- "type": "object"
- },
- "ReportConfigComparisonExpression": {
- "description": "The comparison expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to use in comparison.",
- "type": "string"
- },
- "operator": {
- "description": "The operator to use for comparison.",
- "oneOf": [
- {
- "enum": [
- "In",
- "Contains"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Array of values to use for comparison",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "name",
- "operator",
- "values"
- ],
- "type": "object"
- },
- "ReportConfigDataset": {
- "description": "The definition of data present in the report.",
- "properties": {
- "aggregation": {
- "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
- "oneOf": [
- {
- "additionalProperties": {
- "$ref": "#/definitions/ReportConfigAggregation"
- },
- "properties": {},
- "type": "object"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "configuration": {
- "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDatasetConfiguration"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "filter": {
- "description": "Has filter expression to use in the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigFilter"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "granularity": {
- "description": "The granularity of rows in the report.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "grouping": {
- "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigGrouping"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "sorting": {
- "description": "Array of order by expression to use in the report.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/ReportConfigSorting"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDatasetConfiguration": {
- "description": "The configuration of dataset in the report.",
- "properties": {
- "columns": {
- "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigDefinition": {
- "description": "The definition of a report config.",
- "properties": {
- "dataSet": {
- "description": "Has definition for data in this report config.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDataset"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "includeMonetaryCommitment": {
- "description": "If true, report includes monetary commitment.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timePeriod": {
- "description": "Has time period for pulling data for the report.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigTimePeriod"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "timeframe": {
- "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
- "oneOf": [
- {
- "enum": [
- "WeekToDate",
- "MonthToDate",
- "YearToDate",
- "Custom"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "type": {
- "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
- "oneOf": [
- {
- "enum": [
- "Usage"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "timeframe"
- ],
- "type": "object"
- },
- "ReportConfigFilter": {
- "description": "The filter expression to be used in the report.",
- "properties": {
- "and": {
- "description": "The logical \"AND\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dimensions": {
- "description": "Has comparison expression for a dimension",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "or": {
- "description": "The logical \"OR\" expression. Must have at least 2 items.",
- "oneOf": [
- {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "tags": {
- "description": "Has comparison expression for a tag",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigComparisonExpression"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "type": "object"
- },
- "ReportConfigGrouping": {
- "description": "The group by expression to be used in the report.",
- "properties": {
- "name": {
- "description": "The name of the column to group. This version supports subscription lowest possible grain.",
- "type": "string"
- },
- "type": {
- "description": "Has type of the column to group.",
- "oneOf": [
- {
- "enum": [
- "TagKey",
- "Dimension"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type",
- "name"
- ],
- "type": "object"
- },
- "ReportConfigSorting": {
- "description": "The order by expression to be used in the report.",
- "properties": {
- "direction": {
- "description": "Direction of sort.",
- "oneOf": [
- {
- "enum": [
- "Ascending",
- "Descending"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "name": {
- "description": "The name of the column to sort.",
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "ReportConfigTimePeriod": {
- "description": "The start and end date for pulling data for the report.",
- "properties": {
- "from": {
- "description": "The start date to pull data from.",
- "format": "date-time",
- "type": "string"
- },
- "to": {
- "description": "The end date to pull data to.",
- "format": "date-time",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "ScheduleProperties": {
- "description": "The properties of the schedule.",
- "properties": {
- "dayOfMonth": {
- "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "daysOfWeek": {
- "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "endDate": {
- "description": "The end date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "frequency": {
- "description": "Frequency of the schedule.",
- "oneOf": [
- {
- "enum": [
- "Daily",
- "Weekly",
- "Monthly"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "hourOfDay": {
- "description": "UTC time at which cost analysis data will be emailed.",
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "startDate": {
- "description": "The start date and time of the scheduled action (UTC).",
- "format": "date-time",
- "type": "string"
- },
- "weeksOfMonth": {
- "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.",
- "oneOf": [
- {
- "items": {
- "enum": [
- "First",
- "Second",
- "Third",
- "Fourth",
- "Last"
- ],
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "frequency",
- "startDate",
- "endDate"
- ],
- "type": "object"
- },
- "ScheduledActionProperties": {
- "description": "The properties of the scheduled action.",
- "properties": {
- "displayName": {
- "description": "Scheduled action name.",
- "type": "string"
- },
- "fileDestination": {
- "description": "Destination format of the view data. This is optional.",
- "oneOf": [
- {
- "$ref": "#/definitions/FileDestination"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notification": {
- "description": "Notification properties based on scheduled action kind.",
- "oneOf": [
- {
- "$ref": "#/definitions/NotificationProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "notificationEmail": {
- "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.",
- "type": "string"
- },
- "schedule": {
- "description": "Schedule of the scheduled action.",
- "oneOf": [
- {
- "$ref": "#/definitions/ScheduleProperties"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- },
- "status": {
- "description": "Status of the scheduled action.",
- "oneOf": [
- {
- "enum": [
- "Disabled",
- "Enabled",
- "Expired"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "viewId": {
- "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'",
- "type": "string"
- }
- },
- "required": [
- "displayName",
- "notification",
- "schedule",
- "status",
- "viewId"
- ],
- "type": "object"
- },
- "SourceCostAllocationResource": {
- "description": "Source resources for cost allocation",
- "properties": {
- "name": {
- "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag",
- "type": "string"
- },
- "resourceType": {
- "description": "Type of resources contained in this cost allocation rule",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "Tag"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Source Resources for cost allocation. This list cannot contain more than 25 values.",
- "oneOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "values",
- "resourceType",
- "name"
- ],
- "type": "object"
- },
- "SystemAssignedServiceIdentity": {
- "description": "Managed service identity (either system assigned, or none)",
- "properties": {
- "type": {
- "description": "Type of managed service identity (either system assigned, or none).",
- "oneOf": [
- {
- "enum": [
- "None",
- "SystemAssigned"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "TargetCostAllocationResource": {
- "description": "Target resources for cost allocation.",
- "properties": {
- "name": {
- "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag",
- "type": "string"
- },
- "policyType": {
- "description": "Method of cost allocation for the rule",
- "oneOf": [
- {
- "enum": [
- "FixedProportion"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "resourceType": {
- "description": "Type of resources contained in this cost allocation rule",
- "oneOf": [
- {
- "enum": [
- "Dimension",
- "Tag"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "values": {
- "description": "Target resources for cost allocation. This list cannot contain more than 25 values.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/CostAllocationProportion"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- }
- },
- "required": [
- "values",
- "policyType",
- "resourceType",
- "name"
- ],
- "type": "object"
- },
- "ViewProperties": {
- "description": "The properties of the view.",
- "properties": {
- "accumulated": {
- "description": "Show costs accumulated over time.",
- "oneOf": [
- {
- "enum": [
- "true",
- "false"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "chart": {
- "description": "Chart type of the main view in Cost Analysis. Required.",
- "oneOf": [
- {
- "enum": [
- "Area",
- "Line",
- "StackedColumn",
- "GroupedColumn",
- "Table"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "dateRange": {
- "description": "Date range of the current view.",
- "type": "string"
- },
- "displayName": {
- "description": "User input name of the view. Required.",
- "type": "string"
- },
- "kpis": {
- "description": "List of KPIs to show in Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/KpiProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "metric": {
- "description": "Metric to use when displaying costs.",
- "oneOf": [
- {
- "enum": [
- "ActualCost",
- "AmortizedCost",
- "AHUB"
- ],
- "type": "string"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "modifiedOn": {
- "description": "Date when the user last modified this view.",
- "format": "date-time",
- "type": "string"
- },
- "pivots": {
- "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
- "oneOf": [
- {
- "items": {
- "$ref": "#/definitions/PivotProperties"
- },
- "type": "array"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "query": {
- "description": "Query body configuration. Required.",
- "oneOf": [
- {
- "$ref": "#/definitions/ReportConfigDefinition"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
- }
- ]
- },
- "scope": {
- "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
-}
\ No newline at end of file
diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json
index ab4d6df4d4..4e49fc0969 100644
--- a/schemas/common/autogeneratedResources.json
+++ b/schemas/common/autogeneratedResources.json
@@ -10639,144 +10639,6 @@
{
"$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.ContainerStorage.json#/resourceDefinitions/pools_volumes"
},
- {
- "$ref": "https://schema.management.azure.com/schemas/2018-05-31/Microsoft.CostManagement.json#/resourceDefinitions/reportconfigs"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2018-08-01-preview/Microsoft.CostManagement.json#/resourceDefinitions/connectors"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2018-08-01-preview/Microsoft.CostManagement.json#/resourceDefinitions/reports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2020-12-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-01-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-06-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-08-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2022-10-05-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-08-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-09-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/budgets"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/exports"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/scheduledActions"
- },
- {
- "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.CostManagement.json#/unknown_resourceDefinitions/views"
- },
{
"$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.CustomProviders.json#/resourceDefinitions/resourceProviders"
},