Skip to content

Commit 9354738

Browse files
author
msftbot[bot]
authored
[ReleasePR reservations] [Hub Generated] Review request for Microsoft.Capacity to add version stable/2022-03-01 (#2263)
Create to sync Azure/azure-rest-api-specs#18244 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...AzureSDKAutomation:sdkAuto/reservations?expand=1)
2 parents ce337d0 + f9e23a9 commit 9354738

File tree

2 files changed

+235
-0
lines changed

2 files changed

+235
-0
lines changed

schemas/2019-08-01/tenantDeploymentTemplate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@
628628
{
629629
"$ref": "https://schema.management.azure.com/schemas/2021-07-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
630630
},
631+
{
632+
"$ref": "https://schema.management.azure.com/schemas/2022-03-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
633+
},
631634
{
632635
"$ref": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#/tenant_resourceDefinitions/cloudConnectors"
633636
},
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2022-03-01/Microsoft.Capacity.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Capacity",
5+
"description": "Microsoft Capacity Resource Types",
6+
"resourceDefinitions": {},
7+
"tenant_resourceDefinitions": {
8+
"reservationOrders": {
9+
"type": "object",
10+
"properties": {
11+
"apiVersion": {
12+
"type": "string",
13+
"enum": [
14+
"2022-03-01"
15+
]
16+
},
17+
"location": {
18+
"type": "string",
19+
"description": "The Azure Region where the reserved resource lives."
20+
},
21+
"name": {
22+
"type": "string",
23+
"description": "Order Id of the reservation"
24+
},
25+
"properties": {
26+
"oneOf": [
27+
{
28+
"$ref": "#/definitions/PurchaseRequestProperties"
29+
},
30+
{
31+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
32+
}
33+
]
34+
},
35+
"sku": {
36+
"oneOf": [
37+
{
38+
"$ref": "#/definitions/SkuName"
39+
},
40+
{
41+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
42+
}
43+
]
44+
},
45+
"type": {
46+
"type": "string",
47+
"enum": [
48+
"Microsoft.Capacity/reservationOrders"
49+
]
50+
}
51+
},
52+
"required": [
53+
"apiVersion",
54+
"name",
55+
"properties",
56+
"type"
57+
],
58+
"description": "Microsoft.Capacity/reservationOrders"
59+
}
60+
},
61+
"definitions": {
62+
"PurchaseRequestProperties": {
63+
"type": "object",
64+
"properties": {
65+
"appliedScopes": {
66+
"oneOf": [
67+
{
68+
"type": "array",
69+
"items": {
70+
"type": "string"
71+
}
72+
},
73+
{
74+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
75+
}
76+
],
77+
"description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared."
78+
},
79+
"appliedScopeType": {
80+
"oneOf": [
81+
{
82+
"type": "string",
83+
"enum": [
84+
"Single",
85+
"Shared"
86+
]
87+
},
88+
{
89+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
90+
}
91+
]
92+
},
93+
"billingPlan": {
94+
"oneOf": [
95+
{
96+
"type": "string",
97+
"enum": [
98+
"Upfront",
99+
"Monthly"
100+
]
101+
},
102+
{
103+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
104+
}
105+
]
106+
},
107+
"billingScopeId": {
108+
"type": "string",
109+
"description": "Subscription that will be charged for purchasing Reservation"
110+
},
111+
"displayName": {
112+
"type": "string",
113+
"description": "Friendly name of the Reservation"
114+
},
115+
"quantity": {
116+
"oneOf": [
117+
{
118+
"type": "integer"
119+
},
120+
{
121+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
122+
}
123+
],
124+
"description": "Quantity of the SKUs that are part of the Reservation. Must be greater than zero."
125+
},
126+
"renew": {
127+
"oneOf": [
128+
{
129+
"type": "boolean",
130+
"default": false
131+
},
132+
{
133+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
134+
}
135+
],
136+
"description": "Setting this to true will automatically purchase a new reservation on the expiration date time."
137+
},
138+
"reservedResourceProperties": {
139+
"oneOf": [
140+
{
141+
"$ref": "#/definitions/PurchaseRequestPropertiesReservedResourceProperties"
142+
},
143+
{
144+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
145+
}
146+
],
147+
"description": "Properties specific to each reserved resource type. Not required if not applicable."
148+
},
149+
"reservedResourceType": {
150+
"oneOf": [
151+
{
152+
"type": "string",
153+
"enum": [
154+
"VirtualMachines",
155+
"SqlDatabases",
156+
"SuseLinux",
157+
"CosmosDb",
158+
"RedHat",
159+
"SqlDataWarehouse",
160+
"VMwareCloudSimple",
161+
"RedHatOsa",
162+
"Databricks",
163+
"AppService",
164+
"ManagedDisk",
165+
"BlockBlob",
166+
"RedisCache",
167+
"AzureDataExplorer",
168+
"MySql",
169+
"MariaDb",
170+
"PostgreSql",
171+
"DedicatedHost",
172+
"SapHana",
173+
"SqlAzureHybridBenefit",
174+
"AVS",
175+
"DataFactory",
176+
"NetAppStorage",
177+
"AzureFiles",
178+
"SqlEdge"
179+
]
180+
},
181+
{
182+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
183+
}
184+
]
185+
},
186+
"term": {
187+
"oneOf": [
188+
{
189+
"type": "string",
190+
"enum": [
191+
"P1Y",
192+
"P3Y",
193+
"P5Y"
194+
]
195+
},
196+
{
197+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
198+
}
199+
]
200+
}
201+
}
202+
},
203+
"PurchaseRequestPropertiesReservedResourceProperties": {
204+
"type": "object",
205+
"properties": {
206+
"instanceFlexibility": {
207+
"oneOf": [
208+
{
209+
"type": "string",
210+
"enum": [
211+
"On",
212+
"Off"
213+
]
214+
},
215+
{
216+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
217+
}
218+
]
219+
}
220+
},
221+
"description": "Properties specific to each reserved resource type. Not required if not applicable."
222+
},
223+
"SkuName": {
224+
"type": "object",
225+
"properties": {
226+
"name": {
227+
"type": "string"
228+
}
229+
}
230+
}
231+
}
232+
}

0 commit comments

Comments
 (0)