diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/consumption.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/consumption.json index a4fdc3bcf6e1..5e0cf981b646 100644 --- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/consumption.json +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/consumption.json @@ -3391,6 +3391,8 @@ }, "LegacyReservationRecommendationProperties": { "description": "The properties of the reservation recommendation.", + "type": "object", + "discriminator": "scope", "properties": { "lookBackPeriod": { "description": "The number of days of usage to look back for recommendation.", @@ -3465,8 +3467,7 @@ }, "scope": { "description": "Shared or single recommendation.", - "type": "string", - "readOnly": true + "type": "string" }, "skuProperties": { "description": "List of sku properties", @@ -3476,7 +3477,38 @@ }, "readOnly": true } - } + }, + "required": [ + "scope" + ] + }, + "LegacySingleScopeReservationRecommendationProperties": { + "description": "The properties of the legacy reservation recommendation for single scope.", + "type": "object", + "x-ms-discriminator-value": "Single", + "properties": { + "subscriptionId": { + "description": "Subscription id associated with single scoped recommendation.", + "type": "string", + "format": "uuid", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/LegacyReservationRecommendationProperties" + } + ] + }, + "LegacySharedScopeReservationRecommendationProperties": { + "description": "The properties of the legacy reservation recommendation for shared scope.", + "type": "object", + "x-ms-discriminator-value": "Shared", + "allOf": [ + { + "$ref": "#/definitions/LegacyReservationRecommendationProperties" + } + ] }, "SkuProperty": { "description": "The Sku property", diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsByResourceGroup.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsByResourceGroup.json index b8bffa6f6599..1a1c1fb6979e 100644 --- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsByResourceGroup.json +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsByResourceGroup.json @@ -23,7 +23,8 @@ "totalCostWithReservedInstances": 0.0, "netSavings": 4.634521202630137, "firstUsageDate": "2018-03-06T00:00:00Z", - "scope": "Single" + "scope": "Single", + "subscriptionId": "00000000-0000-0000-0000-000000000000" } }, { @@ -42,7 +43,8 @@ "totalCostWithReservedInstances": 0.0, "netSavings": 7.2893157231780812, "firstUsageDate": "2018-03-06T00:00:00Z", - "scope": "Single" + "scope": "Single", + "subscriptionId": "00000000-0000-0000-0000-000000000000" } } ], diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsBySubscription.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsBySubscription.json index 36621416fe9a..eb4ec8490475 100644 --- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsBySubscription.json +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsBySubscription.json @@ -23,7 +23,8 @@ "totalCostWithReservedInstances": 0.0, "netSavings": 4.634521202630137, "firstUsageDate": "2018-03-06T00:00:00Z", - "scope": "Single" + "scope": "Single", + "subscriptionId": "00000000-0000-0000-0000-000000000000" } }, { @@ -42,7 +43,8 @@ "totalCostWithReservedInstances": 0.0, "netSavings": 7.2893157231780812, "firstUsageDate": "2018-03-06T00:00:00Z", - "scope": "Single" + "scope": "Single", + "subscriptionId": "00000000-0000-0000-0000-000000000000" } } ], diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsFilterBySubscriptionForScopeLookBackPeriod.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsFilterBySubscriptionForScopeLookBackPeriod.json index 4c24a92af6a3..bbca5db6fd42 100644 --- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsFilterBySubscriptionForScopeLookBackPeriod.json +++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/ReservationRecommendationsFilterBySubscriptionForScopeLookBackPeriod.json @@ -34,7 +34,8 @@ "name": "Ram", "value": "1" } - ] + ], + "subscriptionId": "00000000-0000-0000-0000-000000000000" } }, { @@ -63,7 +64,8 @@ "name": "CPU", "value": "1" } - ] + ], + "subscriptionId": "00000000-0000-0000-0000-000000000000" } } ],