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

Services Hub OperatorAzure built-in role

Services Hub Operator allows you to perform all read, write, and deletion operations related to Services Hub Connectors.

Role ID82200a5b-e217-47a5-b665-6d8765ee745b
CategoryIntegration
Actions12
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Resources/subscriptions/readGets the list of subscriptions.
Microsoft.Resources/deployments/*Every operation under Microsoft.Resources/deployments
Microsoft.ServicesHub/connectors/writeCreate or update a Services Hub Connector
Microsoft.ServicesHub/connectors/readView or List Services Hub Connectors
Microsoft.ServicesHub/connectors/deleteDelete Services Hub Connectors
Microsoft.ServicesHub/connectors/checkAssessmentEntitlement/actionLists the Assessment Entitlements for a given Services Hub Workspace
Microsoft.ServicesHub/connectors/*Every operation under Microsoft.ServicesHub/connectors
Microsoft.ServicesHub/*Every operation under Microsoft.ServicesHub
Microsoft.ServicesHub/supportOfferingEntitlement/readView the Support Offering Entitlements for a given Services Hub Workspace
Microsoft.ServicesHub/workspaces/readList the Services Hub Workspaces for a given User

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 "Services Hub Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Services Hub Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '82200a5b-e217-47a5-b665-6d8765ee745b')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '82200a5b-e217-47a5-b665-6d8765ee745b')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "82200a5b-e217-47a5-b665-6d8765ee745b"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other integration roles

Find the smallest role for a task →