← cd ~/roles
// roles/azure · containers
Azure Container Storage OwnerAzure built-in role
Lets you install Azure Container Storage and grants access to its storage resources
| 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>"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