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

Azure Red Hat OpenShift Cluster Ingress OperatorAzure built-in role

Manage and configure the OpenShift router.

Role ID0336e1d3-7a87-462b-b6db-342b63f7802c
CategoryContainers
Actions6
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Network/dnsZones/A/deleteRemove the record set of a given name and type 'A' from a DNS zone.
Microsoft.Network/dnsZones/A/writeCreate or update a record set of type 'A' within a DNS zone. The records specified will replace the current records in the record set.
Microsoft.Network/privateDnsZones/A/deleteRemove the record set of a given name and type 'A' from a Private DNS zone.
Microsoft.Network/privateDnsZones/A/writeCreate or update a record set of type 'A' within a Private DNS zone. The records specified will replace the current records in the record set.
Microsoft.Network/virtualNetworks/subnets/readGets a virtual network subnet definition
Microsoft.Network/virtualNetworks/subnets/join/actionJoins a virtual network. Not Alertable.

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 Cluster Ingress Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Red Hat OpenShift Cluster Ingress Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '0336e1d3-7a87-462b-b6db-342b63f7802c')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '0336e1d3-7a87-462b-b6db-342b63f7802c')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "0336e1d3-7a87-462b-b6db-342b63f7802c"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other containers roles

Find the smallest role for a task →