Azure role · containers
Azure Container Storage OwnerAzure built-in role
Lets you install Azure Container Storage and grants access to its storage resources
Read onlyChange some thingsChange anythingGive access to others
Critical risk. It can assign roles, so whoever holds it can grant themselves or anyone else more access in scope.
In short: Azure Container Storage Owner is an Azure built-in role with 17 actions. It can grant access to others, so treat it as privileged.
| Role ID | 95de85bd-744d-4664-9dde-11430bc34793 |
|---|---|
| Category | Containers |
| Actions | 17 |
| Data actions | 0 |
Before you assign it
- It can give access to others. It allows
Microsoft.Authorization/roleAssignments/write, so treat it as a privileged role and assign it through PIM where you can.
What it can do
| Permission | What it allows |
|---|---|
Microsoft.ElasticSan/elasticSans/* | Every operation under Microsoft.ElasticSan/elasticSans |
Microsoft.ElasticSan/locations/* | Every operation under Microsoft.ElasticSan/locations |
Microsoft.ElasticSan/elasticSans/volumeGroups/* | Every operation under Microsoft.ElasticSan/elasticSans/volumeGroups |
Microsoft.ElasticSan/elasticSans/volumeGroups/volumes/* | Every operation under Microsoft.ElasticSan/elasticSans/volumeGroups/volumes |
Microsoft.ElasticSan/locations/asyncoperations/read | Polls the status of an asynchronous operation. |
Microsoft.KubernetesConfiguration/extensions/write | Creates or updates extension resource. |
Microsoft.KubernetesConfiguration/extensions/read | Gets extension instance resource. |
Microsoft.KubernetesConfiguration/extensions/delete | Deletes extension instance resource. |
Microsoft.KubernetesConfiguration/extensions/operations/read | Gets Async Operation status. |
Microsoft.Authorization/*/read | Any read operation on anything under Microsoft.Authorization |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
Microsoft.Resources/subscriptions/read | Gets the list of subscriptions. |
Microsoft.Management/managementGroups/read | List management groups for the authenticated user. |
Microsoft.Resources/deployments/* | Every operation under Microsoft.Resources/deployments |
Microsoft.Support/* | Every operation under Microsoft.Support |
Microsoft.Authorization/roleAssignments/write | Create a role assignment at the specified scope. |
Microsoft.Authorization/roleAssignments/delete | Delete a role assignment at the specified scope. |
Assign it
Scope it as tightly as you can: a resource or resource group rather than the whole subscription.
az role assignment create \
--assignee "jane.doe@contoso.com" \
--role "Azure Container Storage Owner" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Azure Container Storage Owner" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"What each line does
- Line 1: Creates a role assignment in Azure. Makes a change.
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, '95de85bd-744d-4664-9dde-11430bc34793')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '95de85bd-744d-4664-9dde-11430bc34793')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "95de85bd-744d-4664-9dde-11430bc34793"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)Other containers roles
- AcrDelete · 1 permission
- AcrPull · 1 permission
- Connected Cluster Managed Identity CheckAccess Reader · 1 permission
- Container Registry Cache Rule Reader · 1 permission
- Container Registry Credential Set Reader · 1 permission
- Container Registry Repository Catalog Lister · 1 permission
- AcrImageSigner · 2 permissions
- AcrPush · 2 permissions
Find the smallest role for a task →
Link to this page
Writing a guide or answering a question? Copy this link.
<a href="https://azureblog.co.uk/roles/azure/azure-container-storage-owner/">Azure Container Storage Owner Azure role explained</a>Spotted something out of date or wrong? Tell us and we'll fix it.