From 774e0b06c4dd0d312b9e0783e4ba206684f460da Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 7 May 2024 18:22:55 +0000 Subject: [PATCH] CodeGen from PR 3346 in test-repo-billy/azure-rest-api-specs Merge cbd872f2e3a0f01917910aacbe4cc3a2c25f603f into 8442aa4b830e48b3719b6760b1304deded6c8afd --- .../Microsoft.Consumption.json | 229 ---------- schemas/2018-01-31/Microsoft.Consumption.json | 348 -------------- schemas/2018-03-31/Microsoft.Consumption.json | 367 --------------- .../subscriptionDeploymentTemplate.json | 57 --- schemas/2018-06-30/Microsoft.Consumption.json | 367 --------------- schemas/2018-08-31/Microsoft.Consumption.json | 367 --------------- schemas/2018-10-01/Microsoft.Consumption.json | 367 --------------- schemas/2019-01-01/Microsoft.Consumption.json | 325 ------------- .../Microsoft.Consumption.json | 322 ------------- .../Microsoft.Consumption.json | 322 ------------- schemas/2019-05-01/Microsoft.Consumption.json | 339 -------------- schemas/2019-06-01/Microsoft.Consumption.json | 325 ------------- schemas/2019-10-01/Microsoft.Consumption.json | 429 ------------------ schemas/2019-11-01/Microsoft.Consumption.json | 396 ---------------- schemas/2021-05-01/Microsoft.Consumption.json | 395 ---------------- schemas/2021-10-01/Microsoft.Consumption.json | 419 ----------------- schemas/2022-09-01/Microsoft.Consumption.json | 419 ----------------- schemas/2023-03-01/Microsoft.Consumption.json | 419 ----------------- schemas/2023-05-01/Microsoft.Consumption.json | 419 ----------------- schemas/2023-11-01/Microsoft.Consumption.json | 419 ----------------- schemas/common/autogeneratedResources.json | 54 --- 21 files changed, 7104 deletions(-) delete mode 100644 schemas/2017-12-30-preview/Microsoft.Consumption.json delete mode 100644 schemas/2018-01-31/Microsoft.Consumption.json delete mode 100644 schemas/2018-03-31/Microsoft.Consumption.json delete mode 100644 schemas/2018-06-30/Microsoft.Consumption.json delete mode 100644 schemas/2018-08-31/Microsoft.Consumption.json delete mode 100644 schemas/2018-10-01/Microsoft.Consumption.json delete mode 100644 schemas/2019-01-01/Microsoft.Consumption.json delete mode 100644 schemas/2019-04-01-preview/Microsoft.Consumption.json delete mode 100644 schemas/2019-05-01-preview/Microsoft.Consumption.json delete mode 100644 schemas/2019-05-01/Microsoft.Consumption.json delete mode 100644 schemas/2019-06-01/Microsoft.Consumption.json delete mode 100644 schemas/2019-10-01/Microsoft.Consumption.json delete mode 100644 schemas/2019-11-01/Microsoft.Consumption.json delete mode 100644 schemas/2021-05-01/Microsoft.Consumption.json delete mode 100644 schemas/2021-10-01/Microsoft.Consumption.json delete mode 100644 schemas/2022-09-01/Microsoft.Consumption.json delete mode 100644 schemas/2023-03-01/Microsoft.Consumption.json delete mode 100644 schemas/2023-05-01/Microsoft.Consumption.json delete mode 100644 schemas/2023-11-01/Microsoft.Consumption.json diff --git a/schemas/2017-12-30-preview/Microsoft.Consumption.json b/schemas/2017-12-30-preview/Microsoft.Consumption.json deleted file mode 100644 index df131d48f6..0000000000 --- a/schemas/2017-12-30-preview/Microsoft.Consumption.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2017-12-30-preview/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "subscription_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2017-12-30-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.Consumption/budgets" - ], - "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 something else.", - "oneOf": [ - { - "enum": [ - "Cost" - ], - "type": "string" - }, - { - "$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" - }, - "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" - } - ] - }, - "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" - } - } -} \ No newline at end of file diff --git a/schemas/2018-01-31/Microsoft.Consumption.json b/schemas/2018-01-31/Microsoft.Consumption.json deleted file mode 100644 index 7686e0740f..0000000000 --- a/schemas/2018-01-31/Microsoft.Consumption.json +++ /dev/null @@ -1,348 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-01-31/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-01-31" - ], - "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.Consumption/budgets" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "subscription_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-01-31" - ], - "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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters, mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2018-03-31/Microsoft.Consumption.json b/schemas/2018-03-31/Microsoft.Consumption.json deleted file mode 100644 index ae9084618c..0000000000 --- a/schemas/2018-03-31/Microsoft.Consumption.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-03-31/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-03-31" - ], - "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.Consumption/budgets" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "subscription_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-03-31" - ], - "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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2018-05-01/subscriptionDeploymentTemplate.json b/schemas/2018-05-01/subscriptionDeploymentTemplate.json index 0ec7b8e350..219c5fe2f9 100644 --- a/schemas/2018-05-01/subscriptionDeploymentTemplate.json +++ b/schemas/2018-05-01/subscriptionDeploymentTemplate.json @@ -842,63 +842,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2024-02-13/Microsoft.Confluent.json#/subscription_resourceDefinitions/agreements" }, - { - "$ref": "https://schema.management.azure.com/schemas/2017-12-30-preview/Microsoft.Consumption.json#/subscription_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-01-31/Microsoft.Consumption.json#/subscription_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-03-31/Microsoft.Consumption.json#/subscription_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-06-30/Microsoft.Consumption.json#/subscription_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-08-31/Microsoft.Consumption.json#/subscription_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-10-01/Microsoft.Consumption.json#/subscription_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-05-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-05-01-preview/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-05-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-05-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$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" }, diff --git a/schemas/2018-06-30/Microsoft.Consumption.json b/schemas/2018-06-30/Microsoft.Consumption.json deleted file mode 100644 index 500b74a66d..0000000000 --- a/schemas/2018-06-30/Microsoft.Consumption.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-06-30/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-06-30" - ], - "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.Consumption/budgets" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "subscription_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-06-30" - ], - "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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2018-08-31/Microsoft.Consumption.json b/schemas/2018-08-31/Microsoft.Consumption.json deleted file mode 100644 index 0c4f846a02..0000000000 --- a/schemas/2018-08-31/Microsoft.Consumption.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-08-31/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-08-31" - ], - "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.Consumption/budgets" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "subscription_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-08-31" - ], - "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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2018-10-01/Microsoft.Consumption.json b/schemas/2018-10-01/Microsoft.Consumption.json deleted file mode 100644 index a28dfc00cb..0000000000 --- a/schemas/2018-10-01/Microsoft.Consumption.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-10-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-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": "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.Consumption/budgets" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "subscription_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2018-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": "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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2019-01-01/Microsoft.Consumption.json b/schemas/2019-01-01/Microsoft.Consumption.json deleted file mode 100644 index 39351d34b7..0000000000 --- a/schemas/2019-01-01/Microsoft.Consumption.json +++ /dev/null @@ -1,325 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2019-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": "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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2019-04-01-preview/Microsoft.Consumption.json b/schemas/2019-04-01-preview/Microsoft.Consumption.json deleted file mode 100644 index 97ac5d7fb6..0000000000 --- a/schemas/2019-04-01-preview/Microsoft.Consumption.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2019-05-01-preview/Microsoft.Consumption.json b/schemas/2019-05-01-preview/Microsoft.Consumption.json deleted file mode 100644 index 28af7b01cc..0000000000 --- a/schemas/2019-05-01-preview/Microsoft.Consumption.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-05-01-preview/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2019-05-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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2019-05-01/Microsoft.Consumption.json b/schemas/2019-05-01/Microsoft.Consumption.json deleted file mode 100644 index 36b3cf4153..0000000000 --- a/schemas/2019-05-01/Microsoft.Consumption.json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-05-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2019-05-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.", - "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.Consumption/budgets" - ], - "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 by user-specified dimensions and/or tags.", - "oneOf": [ - { - "$ref": "#/definitions/Filter" - }, - { - "$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", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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" - }, - "Filter": { - "description": "May be used to filter budgets by user-specified dimensions and/or tags.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "oneOf": [ - { - "enum": [ - "Actual" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "enabled", - "operator", - "threshold", - "contactEmails" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/schemas/2019-06-01/Microsoft.Consumption.json b/schemas/2019-06-01/Microsoft.Consumption.json deleted file mode 100644 index 45d68704eb..0000000000 --- a/schemas/2019-06-01/Microsoft.Consumption.json +++ /dev/null @@ -1,325 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2019-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": "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.Consumption/budgets" - ], - "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" - } - ] - }, - "filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "oneOf": [ - { - "$ref": "#/definitions/Filters" - }, - { - "$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", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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" - }, - "Filters": { - "description": "May be used to filter budgets by resource group, resource, or meter.", - "properties": { - "meters": { - "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ", - "oneOf": [ - { - "items": { - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$", - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourceGroups": { - "description": "The list of filters on resource groups, allowed at subscription level only.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resources": { - "description": "The list of filters on resources.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "The dictionary of filters on tags.", - "oneOf": [ - { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "properties": {}, - "type": "object" - }, - { - "$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" - } - } -} \ No newline at end of file diff --git a/schemas/2019-10-01/Microsoft.Consumption.json b/schemas/2019-10-01/Microsoft.Consumption.json deleted file mode 100644 index d7c7a902c2..0000000000 --- a/schemas/2019-10-01/Microsoft.Consumption.json +++ /dev/null @@ -1,429 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2019-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": "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "not": { - "description": "The logical \"NOT\" expression.", - "oneOf": [ - { - "$ref": "#/definitions/BudgetFilterProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "locale": { - "description": "Language in which the recipient will receive the notification", - "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.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "oneOf": [ - { - "enum": [ - "Actual" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "enabled", - "operator", - "threshold", - "contactEmails" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/schemas/2019-11-01/Microsoft.Consumption.json b/schemas/2019-11-01/Microsoft.Consumption.json deleted file mode 100644 index 7fbd976eae..0000000000 --- a/schemas/2019-11-01/Microsoft.Consumption.json +++ /dev/null @@ -1,396 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "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": "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "not": { - "description": "The logical \"NOT\" expression.", - "oneOf": [ - { - "$ref": "#/definitions/BudgetFilterProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "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" - } - } -} \ No newline at end of file diff --git a/schemas/2021-05-01/Microsoft.Consumption.json b/schemas/2021-05-01/Microsoft.Consumption.json deleted file mode 100644 index b501c7bd24..0000000000 --- a/schemas/2021-05-01/Microsoft.Consumption.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-05-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2021-05-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.", - "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "not": { - "description": "The logical \"NOT\" expression.", - "oneOf": [ - { - "$ref": "#/definitions/BudgetFilterProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "oneOf": [ - { - "enum": [ - "Actual" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "enabled", - "operator", - "threshold", - "contactEmails" - ], - "type": "object" - } - } -} \ No newline at end of file diff --git a/schemas/2021-10-01/Microsoft.Consumption.json b/schemas/2021-10-01/Microsoft.Consumption.json deleted file mode 100644 index 80f441d96c..0000000000 --- a/schemas/2021-10-01/Microsoft.Consumption.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "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": "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "locale": { - "description": "Language in which the recipient will receive the notification", - "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.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "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" - } - } -} \ No newline at end of file diff --git a/schemas/2022-09-01/Microsoft.Consumption.json b/schemas/2022-09-01/Microsoft.Consumption.json deleted file mode 100644 index 3cc1dc4acc..0000000000 --- a/schemas/2022-09-01/Microsoft.Consumption.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2022-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.", - "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "locale": { - "description": "Language in which the recipient will receive the notification", - "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.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "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" - } - } -} \ No newline at end of file diff --git a/schemas/2023-03-01/Microsoft.Consumption.json b/schemas/2023-03-01/Microsoft.Consumption.json deleted file mode 100644 index eaac82ed63..0000000000 --- a/schemas/2023-03-01/Microsoft.Consumption.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "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": "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "locale": { - "description": "Language in which the recipient will receive the notification", - "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.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "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" - } - } -} \ No newline at end of file diff --git a/schemas/2023-05-01/Microsoft.Consumption.json b/schemas/2023-05-01/Microsoft.Consumption.json deleted file mode 100644 index 9f63a2b595..0000000000 --- a/schemas/2023-05-01/Microsoft.Consumption.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-05-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/budgets", - "properties": { - "apiVersion": { - "enum": [ - "2023-05-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.", - "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "locale": { - "description": "Language in which the recipient will receive the notification", - "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.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "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" - } - } -} \ No newline at end of file diff --git a/schemas/2023-11-01/Microsoft.Consumption.json b/schemas/2023-11-01/Microsoft.Consumption.json deleted file mode 100644 index 70ca3a963e..0000000000 --- a/schemas/2023-11-01/Microsoft.Consumption.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.Consumption.json#", - "title": "Microsoft.Consumption", - "description": "Microsoft Consumption Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "unknown_resourceDefinitions": { - "budgets": { - "description": "Microsoft.Consumption/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.", - "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.Consumption/budgets" - ], - "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 resource group, resource, or meter.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "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", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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.", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension", - "oneOf": [ - { - "$ref": "#/definitions/BudgetComparisonExpression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Has comparison expression for a tag", - "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", - "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" - ], - "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.", - "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. 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. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers", - "oneOf": [ - { - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "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 twelve 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" - }, - "Notification": { - "description": "The notification associated with a budget.", - "properties": { - "contactEmails": { - "description": "Email addresses to send the budget notification to when the threshold is exceeded. 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.", - "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. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.", - "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" - } - ] - }, - "locale": { - "description": "Language in which the recipient will receive the notification", - "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.", - "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" - } - ] - }, - "thresholdType": { - "description": "The type of threshold", - "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" - } - } -} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index ab4d6df4d4..83928b0eb3 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -8881,60 +8881,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2024-02-13/Microsoft.Confluent.json#/resourceDefinitions/organizations" }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-01-31/Microsoft.Consumption.json#/resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-03-31/Microsoft.Consumption.json#/resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-06-30/Microsoft.Consumption.json#/resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-08-31/Microsoft.Consumption.json#/resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-10-01/Microsoft.Consumption.json#/resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-04-01-preview/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-05-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-05-01-preview/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-05-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-05-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets" - }, { "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.ContainerInstance.json#/resourceDefinitions/containerGroups" },