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

Savings plan PurchaserAzure built-in role

Lets you purchase savings plans

Role ID3d24a3a0-c154-4f6f-a5ed-adc8e01ddb74
CategoryManagement-and-governance
Actions10
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Resources/subscriptions/readGets the list of subscriptions.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Capacity/register/actionRegisters the Capacity resource provider and enables the creation of Capacity resources.
Microsoft.Capacity/catalogs/readRead catalog of Reservation
Microsoft.Authorization/roleAssignments/readGet information about a role assignment.
Microsoft.BillingBenefits/savingsPlanOrders/writeCreate a savings plan orders
Microsoft.BIllingBenefits/register/actionRegisters the BillingBenefits resource provider and enables the creation of BillingBenefits resources.
Microsoft.Support/supporttickets/writeAllows creating and updating a support ticket
Microsoft.Billing/billingProperty/readGets the billing properties for a subscription
Microsoft.CostManagement/benefitRecommendations/readList single or shared recommendations for Microsoft benefits.

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 "Savings plan Purchaser" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Savings plan Purchaser" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '3d24a3a0-c154-4f6f-a5ed-adc8e01ddb74')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '3d24a3a0-c154-4f6f-a5ed-adc8e01ddb74')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "3d24a3a0-c154-4f6f-a5ed-adc8e01ddb74"
| 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 →