diff --git a/schemas/2018-05-01/subscriptionDeploymentTemplate.json b/schemas/2018-05-01/subscriptionDeploymentTemplate.json index 4cc4f2546a..d334f61b6d 100644 --- a/schemas/2018-05-01/subscriptionDeploymentTemplate.json +++ b/schemas/2018-05-01/subscriptionDeploymentTemplate.json @@ -49,7 +49,7 @@ }, "resources": { "description": "Collection of resources to be deployed", - "oneOf":[ + "oneOf": [ { "$ref": "#/definitions/resourcesWithoutSymbolicNames" }, @@ -987,14 +987,14 @@ } ] }, - "resourcesWithSymbolicNames":{ + "resourcesWithSymbolicNames": { "type": "object", "description": "Resources with symbolic names", "additionalProperties": { "$ref": "#/definitions/resource" } }, - "resourcesWithoutSymbolicNames":{ + "resourcesWithoutSymbolicNames": { "type": "array", "description": "Resources without symbolic names", "items": { diff --git a/schemas/2019-08-01/managementGroupDeploymentTemplate.json b/schemas/2019-08-01/managementGroupDeploymentTemplate.json index f416520a44..58373db30f 100644 --- a/schemas/2019-08-01/managementGroupDeploymentTemplate.json +++ b/schemas/2019-08-01/managementGroupDeploymentTemplate.json @@ -49,7 +49,7 @@ }, "resources": { "description": "Collection of resources to be deployed", - "oneOf":[ + "oneOf": [ { "$ref": "#/definitions/resourcesWithoutSymbolicNames" }, @@ -678,14 +678,14 @@ } ] }, - "resourcesWithSymbolicNames":{ + "resourcesWithSymbolicNames": { "type": "object", "description": "Resources with symbolic names", "additionalProperties": { "$ref": "#/definitions/resource" } }, - "resourcesWithoutSymbolicNames":{ + "resourcesWithoutSymbolicNames": { "type": "array", "description": "Resources without symbolic names", "items": { diff --git a/schemas/2019-08-01/tenantDeploymentTemplate.json b/schemas/2019-08-01/tenantDeploymentTemplate.json index 87842fe07a..01f39f0845 100644 --- a/schemas/2019-08-01/tenantDeploymentTemplate.json +++ b/schemas/2019-08-01/tenantDeploymentTemplate.json @@ -49,7 +49,7 @@ }, "resources": { "description": "Collection of resources to be deployed", - "oneOf":[ + "oneOf": [ { "$ref": "#/definitions/resourcesWithoutSymbolicNames" }, @@ -559,6 +559,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_customers_policies" }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/promotions" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-11-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/promotions" }, @@ -798,14 +801,14 @@ } ] }, - "resourcesWithSymbolicNames":{ + "resourcesWithSymbolicNames": { "type": "object", "description": "Resources with symbolic names", "additionalProperties": { "$ref": "#/definitions/resource" } }, - "resourcesWithoutSymbolicNames":{ + "resourcesWithoutSymbolicNames": { "type": "array", "description": "Resources without symbolic names", "items": { diff --git a/schemas/2020-09-01-preview/Microsoft.Billing.json b/schemas/2020-09-01-preview/Microsoft.Billing.json new file mode 100644 index 0000000000..daebc2e177 --- /dev/null +++ b/schemas/2020-09-01-preview/Microsoft.Billing.json @@ -0,0 +1,95 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Billing.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Billing", + "description": "Microsoft Billing Resource Types", + "resourceDefinitions": {}, + "tenant_resourceDefinitions": { + "promotions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Promotion Id" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PromotionCreateRequestProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/PromotionCreateSkuNameRequestProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Billing/promotions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Billing/promotions" + } + }, + "definitions": { + "PromotionCreateRequestProperties": { + "type": "object", + "properties": { + "appliedScopes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of the subscriptions that the benefit will be applied." + }, + "displayName": { + "type": "string", + "description": "Friendly name for user to easily identified the promotion." + }, + "orderId": { + "type": "string", + "description": "Unique Id for the promotion order." + } + } + }, + "PromotionCreateSkuNameRequestProperties": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "SKU Name of the promotion to activate" + } + } + } + } +} \ No newline at end of file