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

Storage Account Backup ContributorAzure built-in role

Lets you perform backup and restore operations using Azure Backup on the storage account.

Role IDe5e2a7ff-d759-4cd2-bb51-3152d37e2eb1
CategoryStorage
Actions18
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Authorization/locks/readGets locks at the specified scope.
Microsoft.Authorization/locks/writeAdd locks at the specified scope.
Microsoft.Authorization/locks/deleteDelete locks at the specified scope.
Microsoft.Features/features/readGets the features of a subscription.
Microsoft.Features/providers/features/readGets the feature of a subscription in a given resource provider.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Storage/operations/read
Microsoft.Storage/storageAccounts/objectReplicationPolicies/deleteDelete object replication policy
Microsoft.Storage/storageAccounts/objectReplicationPolicies/readGet object replication policy
Microsoft.Storage/storageAccounts/objectReplicationPolicies/writeCreate or update object replication policy
Microsoft.Storage/storageAccounts/objectReplicationPolicies/restorePointMarkers/writeCreate object replication restore point marker
Microsoft.Storage/storageAccounts/blobServices/containers/readReturns a container
Microsoft.Storage/storageAccounts/blobServices/containers/writeReturns the result of patch blob container
Microsoft.Storage/storageAccounts/blobServices/readList blob services
Microsoft.Storage/storageAccounts/blobServices/writeReturns the result of put blob service properties
Microsoft.Storage/storageAccounts/readReturns the list of storage accounts or gets the properties for the specified storage account.
Microsoft.Storage/storageAccounts/restoreBlobRanges/actionRestore blob ranges to the state of the specified time

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 "Storage Account Backup Contributor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Storage Account Backup Contributor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'e5e2a7ff-d759-4cd2-bb51-3152d37e2eb1')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'e5e2a7ff-d759-4cd2-bb51-3152d37e2eb1')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "e5e2a7ff-d759-4cd2-bb51-3152d37e2eb1"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other storage roles

Find the smallest role for a task →