Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions schemas/2019-08-01/tenantDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,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-11-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/promotions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2019-04-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
},
Expand Down
95 changes: 95 additions & 0 deletions schemas/2020-11-01-preview/Microsoft.Billing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"id": "https://schema.management.azure.com/schemas/2020-11-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-11-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"
}
}
}
}
}