Description
openedon Nov 9, 2023
Related command
az capacity reservation group create
az capacity reservation group update
Is your feature request related to a problem? Please describe.
Today CapacityReservationGroup allows creating capacity reservations that can be used only in the subscription where the reservation is created. This new sharing feature would allow a Capacity Reservation Group to be shared across subscriptions.
Describe the solution you'd like
SharingProfile is a new optional parameter introduced in CapacityReservationGroup that contains list of Subscription resource Ids that the CapacityReservationGroup can be shared with. When a Capacity reservation group is created with a sharing profile, the capacity reservation group is shared with all the subscriptions listed in the sharing profile parameter.
Describe alternatives you've considered
N/A
Additional context
SharingProfile is an optional parameter that needs to be added to
az capacity reservation group create
az capacity reservation group update
{ SharingProfile : Data type is an array of strings; Contains an array of Arm resource ids of subscriptions}
az capacity reservation group create --capacity-reservation-group
--resource-group
[--location]
[--tags]
[--zones {1, 2, 3}]
[--sharing-profile]
eg: az capacity reservation group create -n ReservationGroupName -l centraluseuap -g MyResourceGroup --tags key=val --zones 1 2 \ --sharingprofile /subscriptions/7c9e6679-7425-40de-944b-e07fc1f90ae7 /subscriptions/0f8fad5b-d9cb-469f-a165-70867728950e
az capacity reservation group update --capacity-reservation-group
--resource-group
[--tags]
[--sharing-profile]
eg: az capacity reservation group update -n ReservationGroupName -g MyResourceGroup --tags key=val ---sharingprofile /subscriptions/7c9e6679-7425-40de-944b-e07fc1f90ae7 /subscriptions/0f8fad5b-d9cb-469f-a165-70867728950e
Swagger URL :Azure/azure-rest-api-specs#26378