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

Azure Red Hat OpenShift Disk Storage OperatorAzure built-in role

Install Container Storage Interface (CSI) drivers that enable your cluster to use Azure Disks. Set OpenShift cluster-wide storage defaults to ensure a default storageclass exists for clusters.

Role ID5b7237c5-45e1-49d6-bc18-a1f62f400748
CategoryContainers
Actions16
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Compute/virtualMachines/writeCreates a new virtual machine or updates an existing virtual machine
Microsoft.Compute/virtualMachines/readGet the properties of a virtual machine
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.Compute/virtualMachineScaleSets/readGet the properties of a Virtual Machine Scale Set
Microsoft.Compute/snapshots/writeCreate a new Snapshot or update an existing one
Microsoft.Compute/snapshots/readGet the properties of a Snapshot
Microsoft.Compute/snapshots/deleteDelete a Snapshot
Microsoft.Compute/locations/operations/readGets the status of an asynchronous operation
Microsoft.Compute/locations/DiskOperations/readGets the status of an asynchronous Disk operation
Microsoft.Compute/disks/writeCreates a new Disk or updates an existing one
Microsoft.Compute/disks/readGet the properties of a Disk
Microsoft.Compute/disks/deleteDeletes the Disk
Microsoft.Compute/disks/beginGetAccess/actionGet the SAS URI of the Disk for blob access
Microsoft.Compute/diskEncryptionSets/readGet the properties of a disk encryption set
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.

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 Red Hat OpenShift Disk Storage Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Red Hat OpenShift Disk Storage Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '5b7237c5-45e1-49d6-bc18-a1f62f400748')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '5b7237c5-45e1-49d6-bc18-a1f62f400748')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "5b7237c5-45e1-49d6-bc18-a1f62f400748"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other containers roles

Find the smallest role for a task →