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

Azure API Center Service ContributorAzure built-in role

Allows managing Azure API Center service.

Role IDdd24193f-ef65-44e5-8a7e-6fa6e03f7713
CategoryIntegration
Actions7 (minus 1 NotActions)
Data actions0

What it can do

PermissionWhat it allows
Microsoft.ApiCenter/services/*Every operation under Microsoft.ApiCenter/services
Microsoft.ApiCenter/deletedServices/*Every operation under Microsoft.ApiCenter/deletedServices
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Insights/alertRules/*Every operation under Microsoft.Insights/alertRules
Microsoft.ResourceHealth/availabilityStatuses/readGets the availability statuses for all resources in the specified scope
Microsoft.Resources/deployments/*Every operation under Microsoft.Resources/deployments
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.

Can't do

These are taken away from the actions above.

PermissionWhat it allows
Microsoft.ApiCenter/services/workspaces/apis/versions/definitions/updateAnalysisState/actionUpdates analysis results for specified API definition.

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 "Azure API Center Service Contributor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure API Center Service Contributor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'dd24193f-ef65-44e5-8a7e-6fa6e03f7713')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'dd24193f-ef65-44e5-8a7e-6fa6e03f7713')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "dd24193f-ef65-44e5-8a7e-6fa6e03f7713"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other integration roles

Find the smallest role for a task →