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

Azure Container Storage OperatorAzure built-in role

Role required by a Managed Identity for Azure Container Storage operations

Role ID08d4c71a-cc63-4ce4-a9c8-5dd251b4d619
CategoryContainers
Actions18
Data actions0

What it can do

PermissionWhat it allows
Microsoft.ElasticSan/elasticSans/*Every operation under Microsoft.ElasticSan/elasticSans
Microsoft.ElasticSan/locations/asyncoperations/readPolls the status of an asynchronous operation.
Microsoft.Network/routeTables/join/actionJoins a route table. Not Alertable.
Microsoft.Network/networkSecurityGroups/join/actionJoins a network security group. Not Alertable.
Microsoft.Network/virtualNetworks/writeCreates a virtual network or updates an existing virtual network
Microsoft.Network/virtualNetworks/deleteDeletes a virtual network
Microsoft.Network/virtualNetworks/join/actionJoins a virtual network. Not Alertable.
Microsoft.Network/virtualNetworks/subnets/readGets a virtual network subnet definition
Microsoft.Network/virtualNetworks/subnets/writeCreates a virtual network subnet or updates an existing virtual network subnet
Microsoft.Compute/virtualMachines/readGet the properties of a virtual machine
Microsoft.Compute/virtualMachines/writeCreates a new virtual machine or updates an existing virtual machine
Microsoft.Compute/virtualMachineScaleSets/readGet the properties of a Virtual Machine Scale Set
Microsoft.Compute/virtualMachineScaleSets/writeCreates a new Virtual Machine Scale Set or updates an existing one
Microsoft.Compute/virtualMachineScaleSets/virtualMachines/writeUpdates the properties of a Virtual Machine in a VM Scale Set
Microsoft.Compute/virtualMachineScaleSets/virtualMachines/readRetrieves the properties of a Virtual Machine in a VM Scale Set
Microsoft.Resources/subscriptions/providers/readGets or lists resource providers.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Network/virtualNetworks/readGet the virtual network 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 Container Storage Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Container Storage Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '08d4c71a-cc63-4ce4-a9c8-5dd251b4d619')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '08d4c71a-cc63-4ce4-a9c8-5dd251b4d619')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "08d4c71a-cc63-4ce4-a9c8-5dd251b4d619"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other containers roles

Find the smallest role for a task →