azureblog.co.uk
← cd ~/roles
// roles/azure · management-and-governance

Reservation PurchaserAzure built-in role

Lets you purchase reservations

Role IDf7b75c60-3036-4b75-91c3-6b41c27c1689
CategoryManagement-and-governance
Actions11
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/roleAssignments/readGet information about a role assignment.
Microsoft.Capacity/catalogs/readRead catalog of Reservation
Microsoft.Capacity/register/actionRegisters the Capacity resource provider and enables the creation of Capacity resources.
Microsoft.Compute/register/actionRegisters Subscription with Microsoft.Compute resource provider
Microsoft.Consumption/register/actionRegister to Consumption RP
Microsoft.Consumption/reservationRecommendationDetails/readList Reservation Recommendation Details
Microsoft.Consumption/reservationRecommendations/readList single or shared recommendations for Reserved instances for a subscription.
Microsoft.Resources/subscriptions/readGets the list of subscriptions.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.SQL/register/actionRegisters the subscription for the Microsoft SQL Database resource provider and enables the creation of Microsoft SQL Databases.
Microsoft.Support/supporttickets/writeAllows creating and updating a support ticket

Assign it

Scope it as tightly as you can: a resource or resource group rather than the whole subscription.

azure cli
az role assignment create \
  --assignee "jane.doe@contoso.com" \
  --role "Reservation Purchaser" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Reservation Purchaser" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'f7b75c60-3036-4b75-91c3-6b41c27c1689')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'f7b75c60-3036-4b75-91c3-6b41c27c1689')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "f7b75c60-3036-4b75-91c3-6b41c27c1689"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other management-and-governance roles

Find the smallest role for a task →