Skip to content

Commit 0e9b3af

Browse files
Base commit: copy 2024-11-01-preview version to 2025-05-01-preview
1 parent 794f7f5 commit 0e9b3af

30 files changed

+2728
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-01-preview",
4+
"scope": "providers/Microsoft.Billing/billingAccounts/{acctId}"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "13810867107109237",
12+
"type": "Microsoft.BillingBenefits/applicableDiscounts",
13+
"id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/13810867107109237",
14+
"location": "global",
15+
"properties": {
16+
"appliedScopeType": "BillingAccount",
17+
"benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
18+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
19+
"discountTypeProperties": {
20+
"applyDiscountOn": "Purchase",
21+
"conditions": [
22+
{
23+
"type": "equalAny",
24+
"conditionName": "Cloud",
25+
"value": [
26+
"US-Sec"
27+
]
28+
}
29+
],
30+
"discountPercentage": 14,
31+
"discountType": "Sku",
32+
"productFamilyName": "Azure",
33+
"productId": "DZH318Z0BQ35",
34+
"skuId": "0001"
35+
},
36+
"displayName": "Virtual Machines D Series",
37+
"endAt": "2024-07-01T23:59:59Z",
38+
"entityType": "Primary",
39+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
40+
"provisioningState": "Succeeded",
41+
"startAt": "2023-07-01T00:00:00Z",
42+
"status": "Active",
43+
"systemId": "13810867107109237"
44+
},
45+
"tags": {
46+
"key1": "value1",
47+
"key2": "value2"
48+
}
49+
},
50+
{
51+
"name": "63810867107109237",
52+
"type": "Microsoft.BillingBenefits/applicableDiscounts",
53+
"id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/63810867107109237",
54+
"location": "global",
55+
"properties": {
56+
"benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
57+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
58+
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
59+
"displayName": "Virtual Machines D Series",
60+
"endAt": "2024-07-01T23:59:59Z",
61+
"entityType": "Affiliate",
62+
"primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount",
63+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
64+
"provisioningState": "Succeeded",
65+
"startAt": "2023-07-01T00:00:00Z",
66+
"status": "Active",
67+
"systemId": "63810867107109237"
68+
},
69+
"tags": {
70+
"key1": "value1",
71+
"key2": "value2"
72+
}
73+
}
74+
]
75+
}
76+
}
77+
},
78+
"operationId": "Discounts_ScopeList",
79+
"title": "DiscountScopeList"
80+
}
81+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"parameters": {
3+
"discountName": "testdiscount",
4+
"resourceGroupName": "testrg",
5+
"subscriptionId": "30000000-0000-0000-0000-000000000000"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"name": "testprimarydiscount",
11+
"type": "Microsoft.BillingBenefits/discounts",
12+
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
13+
"location": "global",
14+
"properties": {
15+
"appliedScopeType": "account",
16+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
17+
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
18+
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000",
19+
"discountTypeProperties": {
20+
"applyDiscountOn": "Purchase",
21+
"conditions": [
22+
{
23+
"type": "equalAny",
24+
"conditionName": "Cloud",
25+
"value": [
26+
"US-Sec"
27+
]
28+
}
29+
],
30+
"discountPercentage": 14,
31+
"discountType": "Sku",
32+
"productFamilyName": "Azure",
33+
"productId": "DZH318Z0BQ35",
34+
"skuId": "0001"
35+
},
36+
"displayName": "Virtual Machines D Series",
37+
"endAt": "2024-07-01T23:59:59Z",
38+
"entityType": "Primary",
39+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
40+
"provisioningState": "Succeeded",
41+
"startAt": "2023-07-01T00:00:00Z",
42+
"status": "Canceled",
43+
"systemId": "13810867107109237"
44+
},
45+
"tags": {
46+
"key1": "value1",
47+
"key2": "value2"
48+
}
49+
}
50+
},
51+
"202": {
52+
"headers": {
53+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview",
54+
"Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview",
55+
"Retry-After": 5
56+
}
57+
}
58+
},
59+
"operationId": "Discounts_Cancel",
60+
"title": "DiscountCancel"
61+
}
62+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-01-preview",
4+
"discountName": "testprimarydiscount",
5+
"resourceGroupName": "testrg",
6+
"subscriptionId": "30000000-0000-0000-0000-000000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "testprimarydiscount",
12+
"type": "Microsoft.BillingBenefits/discounts",
13+
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
14+
"location": "global",
15+
"properties": {
16+
"appliedScopeType": "BillingAccount",
17+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
18+
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
19+
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000",
20+
"discountTypeProperties": {
21+
"applyDiscountOn": "Purchase",
22+
"conditions": [
23+
{
24+
"type": "equalAny",
25+
"conditionName": "Cloud",
26+
"value": [
27+
"US-Sec"
28+
]
29+
}
30+
],
31+
"discountPercentage": 14,
32+
"discountType": "Sku",
33+
"productFamilyName": "Azure",
34+
"productId": "DZH318Z0BQ35",
35+
"skuId": "0001"
36+
},
37+
"displayName": "Virtual Machines D Series",
38+
"endAt": "2024-07-01T23:59:59Z",
39+
"entityType": "Primary",
40+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
41+
"provisioningState": "Succeeded",
42+
"startAt": "2023-07-01T00:00:00Z",
43+
"status": "Active",
44+
"systemId": "13810867107109237"
45+
},
46+
"tags": {
47+
"key1": "value1",
48+
"key2": "value2"
49+
}
50+
}
51+
}
52+
},
53+
"operationId": "Discount_Get",
54+
"title": "DiscountGet"
55+
}
56+
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-01-preview",
4+
"discountName": "testprimarydiscount",
5+
"resourceGroupName": "testrg",
6+
"subscriptionId": "30000000-0000-0000-0000-000000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"name": "testprimarydiscount",
14+
"type": "Microsoft.BillingBenefits/discounts",
15+
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
16+
"location": "global",
17+
"properties": {
18+
"appliedScopeType": "BillingAccount",
19+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
20+
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
21+
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000",
22+
"discountTypeProperties": {
23+
"applyDiscountOn": "Purchase",
24+
"conditions": [
25+
{
26+
"type": "equalAny",
27+
"conditionName": "Cloud",
28+
"value": [
29+
"US-Sec"
30+
]
31+
}
32+
],
33+
"discountPercentage": 14,
34+
"discountType": "Sku",
35+
"productFamilyName": "Azure",
36+
"productId": "DZH318Z0BQ35",
37+
"skuId": "0001"
38+
},
39+
"displayName": "Virtual Machines D Series",
40+
"endAt": "2024-07-01T23:59:59Z",
41+
"entityType": "Primary",
42+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
43+
"provisioningState": "Succeeded",
44+
"startAt": "2023-07-01T00:00:00Z",
45+
"status": "Active",
46+
"systemId": "13810867107109237"
47+
},
48+
"tags": {
49+
"key1": "value1",
50+
"key2": "value2"
51+
}
52+
},
53+
{
54+
"name": "testprimarydiscount",
55+
"type": "Microsoft.BillingBenefits/discounts",
56+
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
57+
"location": "global",
58+
"properties": {
59+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
60+
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
61+
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000",
62+
"displayName": "Virtual Machines D Series",
63+
"endAt": "2024-07-01T23:59:59Z",
64+
"entityType": "Affiliate",
65+
"primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount",
66+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
67+
"provisioningState": "Succeeded",
68+
"startAt": "2023-07-01T00:00:00Z",
69+
"status": "Active",
70+
"systemId": "13810867107109237"
71+
},
72+
"tags": {
73+
"key1": "value1",
74+
"key2": "value2"
75+
}
76+
}
77+
]
78+
}
79+
}
80+
},
81+
"operationId": "Discounts_SubscriptionList",
82+
"title": "DiscountSubscriptionList"
83+
}
84+
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-05-01-preview",
4+
"discountName": "testprimarydiscount",
5+
"resourceGroupName": "testrg",
6+
"subscriptionId": "30000000-0000-0000-0000-000000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"name": "testprimarydiscount",
14+
"type": "Microsoft.BillingBenefits/discounts",
15+
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
16+
"location": "global",
17+
"properties": {
18+
"appliedScopeType": "BillingAccount",
19+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
20+
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
21+
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000",
22+
"discountTypeProperties": {
23+
"applyDiscountOn": "Purchase",
24+
"conditions": [
25+
{
26+
"type": "equalAny",
27+
"conditionName": "Cloud",
28+
"value": [
29+
"US-Sec"
30+
]
31+
}
32+
],
33+
"discountPercentage": 14,
34+
"discountType": "Sku",
35+
"productFamilyName": "Azure",
36+
"productId": "DZH318Z0BQ35",
37+
"skuId": "0001"
38+
},
39+
"displayName": "Virtual Machines D Series",
40+
"endAt": "2024-07-01T23:59:59Z",
41+
"entityType": "Primary",
42+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
43+
"provisioningState": "Succeeded",
44+
"startAt": "2023-07-01T00:00:00Z",
45+
"status": "Active",
46+
"systemId": "13810867107109237"
47+
},
48+
"tags": {
49+
"key1": "value1",
50+
"key2": "value2"
51+
}
52+
},
53+
{
54+
"name": "testprimarydiscount",
55+
"type": "Microsoft.BillingBenefits/discounts",
56+
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
57+
"location": "global",
58+
"properties": {
59+
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
60+
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
61+
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000",
62+
"displayName": "Virtual Machines D Series",
63+
"endAt": "2024-07-01T23:59:59Z",
64+
"entityType": "Affiliate",
65+
"primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount",
66+
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
67+
"provisioningState": "Succeeded",
68+
"startAt": "2023-07-01T00:00:00Z",
69+
"status": "Active",
70+
"systemId": "13810867107109237"
71+
},
72+
"tags": {
73+
"key1": "value1",
74+
"key2": "value2"
75+
}
76+
}
77+
]
78+
}
79+
}
80+
},
81+
"operationId": "Discounts_ResourceGroupList",
82+
"title": "DiscountsResourceGroupList"
83+
}
84+

0 commit comments

Comments
 (0)