azureblog.co.uk
← cd ~/roles
// roles/azure · compute

Compute Limit OperatorAzure built-in role

Read and manage compute limits using compute limit operations.

Role ID980cf6f7-edec-4fd1-8e9e-28f70b1d5258
CategoryCompute
Actions10
Data actions0

What it can do

PermissionWhat it allows
Microsoft.ComputeLimit/locations/guestSubscriptions/readReads guest subscriptions for a given host subscription within a location.
Microsoft.ComputeLimit/locations/guestSubscriptions/writeAdds a subscription as a guest to consume a host subscription's shared compute limits.
Microsoft.ComputeLimit/locations/guestSubscriptions/deleteRemoves a subscription as a guest preventing it from consuming the host subscription's shared compute limits.
Microsoft.ComputeLimit/locations/sharedLimits/readLists all compute shared limits a host subscription shares with its guest subscriptions.
Microsoft.ComputeLimit/locations/sharedLimits/writeEnables sharing of a compute limit by a host subscription with its guest subscriptions.
Microsoft.ComputeLimit/locations/sharedLimits/deleteDisables sharing of a compute limit by a host subscription with its guest subscriptions.
Microsoft.ComputeLimit/register/actionRegisters the subscription for the Compute Limit resource provider and enables the management of compute limit resources.
Microsoft.Insights/alertRules/*Every operation under Microsoft.Insights/alertRules
Microsoft.Resources/deployments/*Every operation under Microsoft.Resources/deployments
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.

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 "Compute Limit Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Compute Limit Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '980cf6f7-edec-4fd1-8e9e-28f70b1d5258')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '980cf6f7-edec-4fd1-8e9e-28f70b1d5258')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "980cf6f7-edec-4fd1-8e9e-28f70b1d5258"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other compute roles

Find the smallest role for a task →