← 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 ID | 5b7237c5-45e1-49d6-bc18-a1f62f400748 |
|---|---|
| Category | Containers |
| Actions | 16 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.Compute/virtualMachines/write | Creates a new virtual machine or updates an existing virtual machine |
Microsoft.Compute/virtualMachines/read | Get the properties of a virtual machine |
Microsoft.Compute/virtualMachineScaleSets/virtualMachines/write | Updates the properties of a Virtual Machine in a VM Scale Set |
Microsoft.Compute/virtualMachineScaleSets/virtualMachines/read | Retrieves the properties of a Virtual Machine in a VM Scale Set |
Microsoft.Compute/virtualMachineScaleSets/read | Get the properties of a Virtual Machine Scale Set |
Microsoft.Compute/snapshots/write | Create a new Snapshot or update an existing one |
Microsoft.Compute/snapshots/read | Get the properties of a Snapshot |
Microsoft.Compute/snapshots/delete | Delete a Snapshot |
Microsoft.Compute/locations/operations/read | Gets the status of an asynchronous operation |
Microsoft.Compute/locations/DiskOperations/read | Gets the status of an asynchronous Disk operation |
Microsoft.Compute/disks/write | Creates a new Disk or updates an existing one |
Microsoft.Compute/disks/read | Get the properties of a Disk |
Microsoft.Compute/disks/delete | Deletes the Disk |
Microsoft.Compute/disks/beginGetAccess/action | Get the SAS URI of the Disk for blob access |
Microsoft.Compute/diskEncryptionSets/read | Get the properties of a disk encryption set |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
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 Red Hat OpenShift Disk Storage Operator" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Azure Red Hat OpenShift Disk Storage Operator" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"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?
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
- 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