← cd ~/roles
// roles/azure · containers
Azure Red Hat OpenShift Cluster Ingress OperatorAzure built-in role
Manage and configure the OpenShift router.
| Role ID | 0336e1d3-7a87-462b-b6db-342b63f7802c |
|---|---|
| Category | Containers |
| Actions | 6 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.Network/dnsZones/A/delete | Remove the record set of a given name and type 'A' from a DNS zone. |
Microsoft.Network/dnsZones/A/write | Create 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/delete | Remove the record set of a given name and type 'A' from a Private DNS zone. |
Microsoft.Network/privateDnsZones/A/write | Create 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/read | Gets a virtual network subnet definition |
Microsoft.Network/virtualNetworks/subnets/join/action | Joins a virtual network. Not Alertable. |
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 Cluster Ingress Operator" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Azure Red Hat OpenShift Cluster Ingress Operator" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"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?
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
- 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