← cd ~/roles
// roles/azure · storage
Elastic SAN Network AdminAzure built-in role
Allows access to create Private Endpoints on SAN resources, and to read SAN resources
| Role ID | fa6cecf6-5db3-4c43-8470-c540bcb4eafa |
|---|---|
| Category | Storage |
| Actions | 5 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.ElasticSan/elasticSans/*/read | Any read operation on anything under Microsoft.ElasticSan/elasticSans |
Microsoft.ElasticSan/elasticSans/PrivateEndpointConnectionsApproval/action | |
Microsoft.ElasticSan/elasticSans/privateEndpointConnections/write | |
Microsoft.ElasticSan/elasticSans/privateEndpointConnections/delete | |
Microsoft.ElasticSan/locations/asyncoperations/read | Polls the status of an asynchronous operation. |
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 "Elastic SAN Network Admin" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Elastic SAN Network Admin" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, 'fa6cecf6-5db3-4c43-8470-c540bcb4eafa')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'fa6cecf6-5db3-4c43-8470-c540bcb4eafa')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "fa6cecf6-5db3-4c43-8470-c540bcb4eafa"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)Other storage roles
- Azure File Sync Reader · 1 permission
- Storage Blob Delegator · 1 permission
- Storage File Data SMB Share Reader · 1 permission
- Storage File Data SMB Take Ownership · 1 permission
- Storage File Delegator · 1 permission
- Storage Queue Data Message Sender · 1 permission
- Storage Queue Delegator · 1 permission
- Storage Table Delegator · 1 permission