Skip to content

Changes related to sharing a capacity reservation group. #27811

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions