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

Container Apps SessionPools ContributorAzure built-in role

Full management of Container Apps SessionPools, including creation, deletion, and updates.

Role IDf7669afb-68b2-44b4-9c5f-6d2a47fddda0
CategoryContainers
Actions15 (minus 2 NotActions)
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Insights/alertRules/*Every operation under Microsoft.Insights/alertRules
Microsoft.App/sessionPools/*/readAny read operation on anything under Microsoft.App/sessionPools
Microsoft.App/sessionPools/*/writeAny write operation on anything under Microsoft.App/sessionPools
Microsoft.App/sessionPools/*/deleteAny delete operation on anything under Microsoft.App/sessionPools
Microsoft.App/sessionPools/*/actionAny action on anything under Microsoft.App/sessionPools
microsoft.App/managedEnvironments/readGet a Managed Environment
Microsoft.App/managedEnvironments/*/readAny read operation on anything under Microsoft.App/managedEnvironments
Microsoft.App/managedEnvironments/join/actionAllows to create a Container App in a Managed Environment
Microsoft.App/managedEnvironments/checknameavailability/actionCheck reource name availability for a Managed Environment
microsoft.App/connectedEnvironments/readGet a Connected Environment
Microsoft.App/connectedEnvironments/*/readAny read operation on anything under Microsoft.App/connectedEnvironments
Microsoft.App/connectedEnvironments/join/actionAllows to create a Container App or Container Apps Job in a Connected Environment
Microsoft.App/connectedEnvironments/checknameavailability/actionCheck reource name availability for a Connected Environment
Microsoft.Resources/deployments/*Every operation under Microsoft.Resources/deployments

Can't do

These are taken away from the actions above.

PermissionWhat it allows
Microsoft.App/sessionPools/fetchMcpServerCredentials/actionFetch a Session Pool's MCP Server Credentials
Microsoft.App/sessionPools/rotateMcpServerCredentials/actionRotate a Session Pool's MCP Server Credentials

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 "Container Apps SessionPools Contributor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Container Apps SessionPools Contributor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'f7669afb-68b2-44b4-9c5f-6d2a47fddda0')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'f7669afb-68b2-44b4-9c5f-6d2a47fddda0')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "f7669afb-68b2-44b4-9c5f-6d2a47fddda0"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other containers roles

Find the smallest role for a task →