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 @@ -667,6 +667,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2022-03-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-11-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
},
{
"$ref": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#/tenant_resourceDefinitions/cloudConnectors"
},
Expand Down
280 changes: 280 additions & 0 deletions schemas/2022-11-01/Microsoft.Capacity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
{
"id": "https://schema.management.azure.com/schemas/2022-11-01/Microsoft.Capacity.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Capacity",
"description": "Microsoft Capacity Resource Types",
"resourceDefinitions": {},
"tenant_resourceDefinitions": {
"reservationOrders": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2022-11-01"
]
},
"location": {
"type": "string",
"description": "The Azure region where the reserved resource lives."
},
"name": {
"type": "string",
"description": "Order Id of the reservation"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PurchaseRequestProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties of reservation purchase request"
},
"sku": {
"oneOf": [
{
"$ref": "#/definitions/SkuName"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of sku"
},
"type": {
"type": "string",
"enum": [
"Microsoft.Capacity/reservationOrders"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Capacity/reservationOrders"
}
},
"definitions": {
"AppliedScopeProperties": {
"type": "object",
"properties": {
"displayName": {
"type": "string",
"description": "Display name"
},
"managementGroupId": {
"type": "string",
"description": "Fully-qualified identifier of the management group where the benefit must be applied."
},
"resourceGroupId": {
"type": "string",
"description": "Fully-qualified identifier of the resource group."
},
"subscriptionId": {
"type": "string",
"description": "Fully-qualified identifier of the subscription."
},
"tenantId": {
"type": "string",
"description": "Tenant ID where the savings plan should apply benefit."
}
},
"description": "Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup"
},
"PurchaseRequestProperties": {
"type": "object",
"properties": {
"appliedScopeProperties": {
"oneOf": [
{
"$ref": "#/definitions/AppliedScopeProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup"
},
"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. Do not specify if AppliedScopeType is Shared."
},
"appliedScopeType": {
"oneOf": [
{
"type": "string",
"enum": [
"Single",
"Shared",
"ManagementGroup"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"billingPlan": {
"oneOf": [
{
"type": "string",
"enum": [
"Upfront",
"Monthly"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"billingScopeId": {
"type": "string",
"description": "Subscription that will be charged for purchasing reservation or savings plan"
},
"displayName": {
"type": "string",
"description": "Friendly name of the reservation"
},
"quantity": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Quantity of the skus that are part of the reservation. Must be greater than zero."
},
"renew": {
"oneOf": [
{
"type": "boolean",
"default": false
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Setting this to true will automatically purchase a new reservation on the expiration date time."
},
"reservedResourceProperties": {
"oneOf": [
{
"$ref": "#/definitions/PurchaseRequestPropertiesReservedResourceProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties specific to each reserved resource type. Not required if not applicable."
},
"reservedResourceType": {
"oneOf": [
{
"type": "string",
"enum": [
"VirtualMachines",
"SqlDatabases",
"SuseLinux",
"CosmosDb",
"RedHat",
"SqlDataWarehouse",
"VMwareCloudSimple",
"RedHatOsa",
"Databricks",
"AppService",
"ManagedDisk",
"BlockBlob",
"RedisCache",
"AzureDataExplorer",
"MySql",
"MariaDb",
"PostgreSql",
"DedicatedHost",
"SapHana",
"SqlAzureHybridBenefit",
"AVS",
"DataFactory",
"NetAppStorage",
"AzureFiles",
"SqlEdge",
"VirtualMachineSoftware"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"reviewDateTime": {
"type": "string",
"format": "date-time",
"description": "This is the date-time when the Azure hybrid benefit needs to be reviewed."
},
"term": {
"oneOf": [
{
"type": "string",
"enum": [
"P1Y",
"P3Y",
"P5Y"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"description": "Properties of reservation purchase request"
},
"PurchaseRequestPropertiesReservedResourceProperties": {
"type": "object",
"properties": {
"instanceFlexibility": {
"oneOf": [
{
"type": "string",
"enum": [
"On",
"Off"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"description": "Properties specific to each reserved resource type. Not required if not applicable."
},
"SkuName": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"description": "The name of sku"
}
}
}