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

Automation Job OperatorAzure built-in role

Create and Manage Jobs using Automation Runbooks.

Role ID4fe576fe-1146-4730-92eb-48519fa6bf9f
CategoryManagement-and-governance
Actions13
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/readReads a Hybrid Runbook Worker Group
Microsoft.Automation/automationAccounts/jobs/readGets an Azure Automation job
Microsoft.Automation/automationAccounts/jobs/resume/actionResumes an Azure Automation job
Microsoft.Automation/automationAccounts/jobs/stop/actionStops an Azure Automation job
Microsoft.Automation/automationAccounts/jobs/streams/readGets an Azure Automation job stream
Microsoft.Automation/automationAccounts/jobs/suspend/actionSuspends an Azure Automation job
Microsoft.Automation/automationAccounts/jobs/writeCreates an Azure Automation job
Microsoft.Automation/automationAccounts/jobs/output/readGets the output of a job
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.
Microsoft.Support/*Every operation under Microsoft.Support

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 "Automation Job Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Automation Job Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '4fe576fe-1146-4730-92eb-48519fa6bf9f')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '4fe576fe-1146-4730-92eb-48519fa6bf9f')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "4fe576fe-1146-4730-92eb-48519fa6bf9f"
| 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 →