Skip to content

Commit 7978c99

Browse files
thramuMattEberhart-MSFTE
authored andcommitted
[Hub Generated] Review request for Microsoft.Consumption to add version stable/2023-03-01 (Azure#23264)
* Adds base for updating Microsoft.Consumption from version stable/2022-09-01 to version 2023-03-01 * Updates readme * Updates API version in new specs and examples * Adding new API version contract changes to 2023-03-01 (Azure#22644) * Added RI Tranastions query parameters to billing account scope. Updat… (Azure#22963) * Added RI Tranastions query parameters to billing account scope. Updated example. Added documentation around size response limit * Ran prettify and fixed typo * Adding suppression for valid formats * Single directives (Azure#23014) --------- Co-authored-by: MattEberhart-MSFTE <[email protected]>
1 parent 63f91ba commit 7978c99

File tree

92 files changed

+11746
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+11746
-2
lines changed

specification/consumption/resource-manager/Microsoft.Consumption/stable/2023-03-01/consumption.json

Lines changed: 5991 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01",
4+
"managementGroupId": "managementGroupForTest"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1",
10+
"name": "aggregatedcostId1",
11+
"type": "Microsoft.Consumption/aggregatedcost",
12+
"properties": {
13+
"includedSubscriptions": [
14+
"1caaa5a3-2b66-438e-8ab4-bce37d518c5d"
15+
],
16+
"excludedSubscriptions": [],
17+
"usageStart": "2023-03-01T00:00:00.0000000Z",
18+
"usageEnd": "2018-10-31T00:00:00.0000000Z",
19+
"azureCharges": 250.9876,
20+
"marketplaceCharges": 150.786,
21+
"chargesBilledSeparately": 120.345,
22+
"currency": "USD",
23+
"children": [
24+
{
25+
"id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2",
26+
"name": "aggregatedcostId2",
27+
"type": "Microsoft.Consumption/aggregatedcost",
28+
"properties": {
29+
"includedSubscriptions": [
30+
"c349567d-c83a-48c9-ab0e-578c69dc97a4"
31+
],
32+
"excludedSubscriptions": [],
33+
"usageStart": "2023-03-01T00:00:00.0000000Z",
34+
"usageEnd": "2018-10-31T00:00:00.0000000Z",
35+
"azureCharges": 150.0,
36+
"marketplaceCharges": 50.786,
37+
"chargesBilledSeparately": 30.345,
38+
"currency": "USD",
39+
"children": []
40+
}
41+
}
42+
]
43+
}
44+
}
45+
}
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01",
4+
"managementGroupId": "managementGroupForTest",
5+
"$filter": "usageStart ge '2018-08-15' and properties/usageStart le '2018-08-31'"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1",
11+
"name": "aggregatedcostId1",
12+
"type": "Microsoft.Consumption/aggregatedcost",
13+
"properties": {
14+
"includedSubscriptions": [
15+
"1caaa5a3-2b66-438e-8ab4-bce37d518c5d"
16+
],
17+
"excludedSubscriptions": [],
18+
"usageStart": "2018-08-15T00:00:00.0000000Z",
19+
"usageEnd": "2018-08-31T00:00:00.0000000Z",
20+
"azureCharges": 150.9876,
21+
"marketplaceCharges": 80.786,
22+
"chargesBilledSeparately": 90.345,
23+
"currency": "USD",
24+
"children": [
25+
{
26+
"id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2",
27+
"name": "aggregatedcostId2",
28+
"type": "Microsoft.Consumption/aggregatedcost",
29+
"properties": {
30+
"includedSubscriptions": [
31+
"c349567d-c83a-48c9-ab0e-578c69dc97a4"
32+
],
33+
"excludedSubscriptions": [],
34+
"usageStart": "2018-08-15T00:00:00.0000000Z",
35+
"usageEnd": "2018-08-31T00:00:00.0000000Z",
36+
"azureCharges": 50.0,
37+
"marketplaceCharges": 10.786,
38+
"chargesBilledSeparately": 30.345,
39+
"currency": "USD",
40+
"children": []
41+
}
42+
}
43+
]
44+
}
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01",
4+
"managementGroupId": "managementGroupForTest",
5+
"billingPeriodName": "201807"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/providers/Microsoft.Management/managementGroups/managementGroupForTest/providers/Microsoft.Consumption/aggregatedcostId1",
11+
"name": "aggregatedcostId1",
12+
"type": "Microsoft.Consumption/aggregatedcost",
13+
"properties": {
14+
"usageStart": "2018-07-01T00:00:00.0000000Z",
15+
"usageEnd": "2018-07-31T00:00:00.0000000Z",
16+
"azureCharges": 250.9876,
17+
"marketplaceCharges": 150.786,
18+
"chargesBilledSeparately": 120.345,
19+
"currency": "USD",
20+
"children": [
21+
{
22+
"id": "/providers/Microsoft.Management/managementGroups/managementGroupChildForTest/providers/Microsoft.Consumption/aggregatedcostId2",
23+
"name": "aggregatedcostId2",
24+
"type": "Microsoft.Consumption/aggregatedcost",
25+
"properties": {
26+
"usageStart": "2018-07-01T00:00:00.0000000Z",
27+
"usageEnd": "2018-07-31T00:00:00.0000000Z",
28+
"azureCharges": 150.0,
29+
"marketplaceCharges": 50.786,
30+
"chargesBilledSeparately": 30.345,
31+
"currency": "USD",
32+
"children": []
33+
}
34+
}
35+
]
36+
}
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01",
4+
"billingAccountId": "123456"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1",
10+
"name": "balanceId1",
11+
"type": "Microsoft.Consumption/balances",
12+
"properties": {
13+
"currency": "USD ",
14+
"beginningBalance": 3396469.19,
15+
"endingBalance": 2922371.02,
16+
"newPurchases": 0,
17+
"adjustments": 0,
18+
"utilized": 474098.17,
19+
"serviceOverage": 0,
20+
"chargesBilledSeparately": 0,
21+
"totalOverage": 0,
22+
"totalUsage": 474098.17,
23+
"azureMarketplaceServiceCharges": 609.82,
24+
"billingFrequency": "Month",
25+
"priceHidden": false,
26+
"overageRefund": 2012.61,
27+
"newPurchasesDetails": [
28+
{
29+
"name": "Promo Purchase",
30+
"value": 1
31+
}
32+
],
33+
"adjustmentDetails": [
34+
{
35+
"name": "Promo Credit",
36+
"value": 1.1
37+
},
38+
{
39+
"name": "SIE Credit",
40+
"value": 1.0
41+
}
42+
]
43+
}
44+
}
45+
}
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01",
4+
"billingAccountId": "123456",
5+
"billingPeriodName": "201702"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1",
11+
"name": "balanceId1",
12+
"type": "Microsoft.Consumption/balances",
13+
"properties": {
14+
"currency": "USD ",
15+
"beginningBalance": 3396469.19,
16+
"endingBalance": 2922371.02,
17+
"newPurchases": 0,
18+
"adjustments": 0,
19+
"utilized": 474098.17,
20+
"serviceOverage": 0,
21+
"chargesBilledSeparately": 0,
22+
"totalOverage": 0,
23+
"totalUsage": 474098.17,
24+
"azureMarketplaceServiceCharges": 609.82,
25+
"billingFrequency": "Month",
26+
"priceHidden": false,
27+
"overageRefund": 2012.61,
28+
"newPurchasesDetails": [
29+
{
30+
"name": "Promo Purchase",
31+
"value": 1
32+
}
33+
],
34+
"adjustmentDetails": [
35+
{
36+
"name": "Promo Credit",
37+
"value": 1.1
38+
},
39+
{
40+
"name": "SIE Credit",
41+
"value": 1.0
42+
}
43+
]
44+
}
45+
}
46+
}
47+
}
48+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-03-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "MYDEVTESTRG",
6+
"budgetName": "TestBudget",
7+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/TestBudget",
13+
"name": "TestBudget",
14+
"type": "Microsoft.Consumption/budgets",
15+
"eTag": "\"1d34d012214157f\"",
16+
"properties": {
17+
"category": "Cost",
18+
"amount": 100.65,
19+
"timeGrain": "Monthly",
20+
"timePeriod": {
21+
"startDate": "2017-10-01T00:00:00Z",
22+
"endDate": "2018-10-31T00:00:00Z"
23+
},
24+
"filter": {
25+
"and": [
26+
{
27+
"dimensions": {
28+
"name": "ResourceId",
29+
"operator": "In",
30+
"values": [
31+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
32+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
33+
]
34+
}
35+
},
36+
{
37+
"tags": {
38+
"name": "category",
39+
"operator": "In",
40+
"values": [
41+
"Dev",
42+
"Prod"
43+
]
44+
}
45+
},
46+
{
47+
"tags": {
48+
"name": "department",
49+
"operator": "In",
50+
"values": [
51+
"engineering",
52+
"sales"
53+
]
54+
}
55+
}
56+
]
57+
},
58+
"currentSpend": {
59+
"amount": 80.89,
60+
"unit": "USD"
61+
},
62+
"notifications": {
63+
"Actual_GreaterThan_80_Percent": {
64+
"enabled": true,
65+
"operator": "GreaterThan",
66+
"threshold": 80,
67+
"contactEmails": [
68+
69+
70+
],
71+
"contactRoles": [
72+
"Contributor",
73+
"Reader"
74+
],
75+
"contactGroups": [
76+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
77+
],
78+
"thresholdType": "Actual"
79+
}
80+
}
81+
}
82+
}
83+
}
84+
}
85+
}

0 commit comments

Comments
 (0)