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

DevCenter Project AdminAzure built-in role

Provides access to manage project resources.

Role ID331c37c6-af14-46d9-b9f4-e1909e1b95a0
CategoryDevops
Actions4 (minus 2 NotActions)
Data actions27

Before you assign it

  • It reaches the data, not just the resource. It has 27 data actions, such as reading blobs, secrets or messages.

What it can do

PermissionWhat it allows
Microsoft.DevCenter/projects/*Every operation under Microsoft.DevCenter/projects
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
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.DevCenter/projects/writeCreates or updates a project.
Microsoft.DevCenter/projects/deleteDeletes a project resource.

Data actions

PermissionWhat it allows
Microsoft.DevCenter/projects/users/devboxes/adminStart/actionAllows a user to start any Dev Box resource.
Microsoft.DevCenter/projects/users/devboxes/adminStop/actionAllows a user to stop any Dev Box resource.
Microsoft.DevCenter/projects/users/devboxes/adminRead/actionAllows a user read access to any Dev Box resource.
Microsoft.DevCenter/projects/users/devboxes/adminWrite/actionAllows a user write access to any Dev Box resource.
Microsoft.DevCenter/projects/users/devboxes/adminDelete/actionAllows a user to delete any Dev Box resource.
Microsoft.DevCenter/projects/users/devboxes/adminAlign/actionAllows an admin to align a Dev Box with the pool configuration.
Microsoft.DevCenter/projects/users/devboxes/adminActionRead/actionAllows an admin to read dev box actions.
Microsoft.DevCenter/projects/users/devboxes/adminActionManage/actionAllows an admin to skip or delay dev box actions.
Microsoft.DevCenter/projects/users/devboxes/userStop/actionAllows a user to stop their own Dev Box resources.
Microsoft.DevCenter/projects/users/devboxes/userStart/actionAllows a user to start their own Dev Box resources.
Microsoft.DevCenter/projects/users/devboxes/userGetRemoteConnection/actionAllows a user to get the RDP connection information for their own Dev Box resources.
Microsoft.DevCenter/projects/users/devboxes/userRead/actionAllows a user to read their own Dev Box resources.
Microsoft.DevCenter/projects/users/devboxes/userWrite/actionAllows a user to create and update their own Dev Box resources.
Microsoft.DevCenter/projects/users/devboxes/userDelete/actionAllows a user to delete their own Dev Box resources.
Microsoft.DevCenter/projects/users/devboxes/userActionRead/actionAllows a user to read dev box actions.
Microsoft.DevCenter/projects/users/devboxes/userActionManage/actionAllows a user to skip or delay dev box actions.
Microsoft.DevCenter/projects/users/devboxes/userCustomize/actionAllows a user to customize their own Dev Box resources.
Microsoft.DevCenter/projects/users/environments/adminRead/actionAllows a project administrator to read all of the environments in a project.
Microsoft.DevCenter/projects/users/environments/userWrite/actionAllows a user to write the environments they have access to in a project.
Microsoft.DevCenter/projects/users/environments/adminWrite/actionAllows a project administrator to write all of the environments in a project.
Microsoft.DevCenter/projects/users/environments/userDelete/actionAllows a user to delete the environments they have access to in a project.
Microsoft.DevCenter/projects/users/environments/adminDelete/actionAllows a project administrator to delete all of the environments in a project.
Microsoft.DevCenter/projects/users/environments/adminAction/actionAllows a project administrator to perform an action on all of the environments in a project.
Microsoft.DevCenter/projects/users/environments/adminActionRead/actionAllows an admin to read environment actions.
Microsoft.DevCenter/projects/users/environments/adminActionManage/actionAllows an admin to skip, delay etc. environment actions.
Microsoft.DevCenter/projects/users/environments/adminOutputsRead/actionAllows an admin to read Output values from environment deployment.
Microsoft.DevCenter/projects/pools/align/actionAllows a user to align all virtual machines in the pool.

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 "DevCenter Project Admin" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "DevCenter Project Admin" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '331c37c6-af14-46d9-b9f4-e1909e1b95a0')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '331c37c6-af14-46d9-b9f4-e1909e1b95a0')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "331c37c6-af14-46d9-b9f4-e1909e1b95a0"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other devops roles

Find the smallest role for a task →