diff --git a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/capacityReservation.json b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/capacityReservation.json index 4ef950143722..d2daea707c89 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/capacityReservation.json +++ b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/capacityReservation.json @@ -40,7 +40,7 @@ "CapacityReservationGroups" ], "operationId": "CapacityReservationGroups_CreateOrUpdate", - "description": "The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details.", + "description": "The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified. Please refer to https://aka.ms/CapacityReservation for more details.", "parameters": [ { "name": "resourceGroupName", @@ -103,7 +103,7 @@ "CapacityReservationGroups" ], "operationId": "CapacityReservationGroups_Update", - "description": "The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified.", + "description": "The operation to update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified.", "parameters": [ { "name": "resourceGroupName", @@ -730,6 +730,27 @@ ], "readOnly": true, "description": "List of instance view of the capacity reservations under the capacity reservation group." + }, + "sharedSubscriptionIds": { + "type": "array", + "items": { + "$ref": "../../../common-types/v1/common.json#/definitions/SubResourceReadOnly" + }, + "x-ms-identifiers": [], + "readOnly": true, + "description": "List of the subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details." + } + } + }, + "ResourceSharingProfile": { + "type": "object", + "properties": { + "subscriptionIds": { + "type": "array", + "description": "Specifies an array of Subscription resource Ids that capacity reservation group is shared with. The resource Id should be provided in form: /subscriptions/{subscriptionId}. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.", + "items": { + "$ref": "../../../common-types/v1/common.json#/definitions/SubResource" + } } } }, @@ -756,6 +777,10 @@ "$ref": "#/definitions/CapacityReservationGroupInstanceView", "readOnly": true, "description": "The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group." + }, + "sharingProfile": { + "$ref": "#/definitions/ResourceSharingProfile", + "description": "Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details." } }, "description": "capacity reservation group Properties." diff --git a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json index f8e1299aba9b..1b02eb6a2b69 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json +++ b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json @@ -12,7 +12,19 @@ "zones": [ "1", "2" - ] + ], + "properties": { + "sharingProfile": { + "subscriptionIds": [ + { + "id": "/subscriptions/{subscription-id1}" + }, + { + "id": "/subscriptions/{subscription-id2}" + } + ] + } + } } }, "responses": { @@ -27,7 +39,19 @@ "zones": [ "1", "2" - ] + ], + "properties": { + "sharingProfile": { + "subscriptionIds": [ + { + "id": "/subscriptions/{subscription-id1}" + }, + { + "id": "/subscriptions/{subscription-id2}" + } + ] + } + } } }, "200": { @@ -42,7 +66,19 @@ "zones": [ "1", "2" - ] + ], + "properties": { + "sharingProfile": { + "subscriptionIds": [ + { + "id": "/subscriptions/{subscription-id1}" + }, + { + "id": "/subscriptions/{subscription-id2}" + } + ] + } + } } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json index fe3536448245..255d1c25b22f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json +++ b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json @@ -19,6 +19,16 @@ "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/capacityReservationGroups/myCapacityReservationGroup/capacityReservations/myCapacityReservation2" } ], + "sharingProfile": { + "subscriptionIds": [ + { + "id": "/subscriptions/{subscription-id1}" + }, + { + "id": "/subscriptions/{subscription-id2}" + } + ] + }, "instanceView": { "capacityReservations": [ { @@ -63,6 +73,14 @@ } ] } + ], + "sharedSubscriptionIds": [ + { + "id": "/subscriptions/{subscription-id1}" + }, + { + "id": "/subscriptions/{subscription-id2}" + } ] } },