-
Hi, Does anybody know a way how to assign an Azure reservation to a resource group? When I try -AppliedScopeType Single -AppliedScope "RG ID" the I get the message "Update-AzReservation: Invalid applied scope provided". It seems it only accepts a subscription as the scope for single scope type. Tomek A. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@rkapso , could you help to look into this question? |
Beta Was this translation helpful? Give feedback.
-
Hi @Fiury00, I am from Reservation team, can you please share the reservation id and sub id you are assigning? I will investigate from our side. |
Beta Was this translation helpful? Give feedback.
-
@Fiury00 I took a look at the cmdlet implementation of Update-AzReservation, passing in RG ID is currently not supported. To unblock you, I suggest using direct ARM call with the following information: API call: Request body: |
Beta Was this translation helpful? Give feedback.
@Fiury00 I took a look at the cmdlet implementation of Update-AzReservation, passing in RG ID is currently not supported. To unblock you, I suggest using direct ARM call with the following information:
API call:
PATCH - https://management.azure.com/providers/Microsoft.Capacity/reservationOrders/{ReservationorderId}/reservations/{ReservationId}?api-version=2019-04-01
Request body:
{"properties":{"appliedScopeType":"Single","instanceFlexibility":{instanceFlexibilityValue},"appliedScopes":["/subscriptions/{subId}/resourceGroups/{rgName}"],"name":{ReservationName},"renew":{renew value, true or false}}