← cd ~/roles
// roles/azure · containers
Azure Kubernetes Fleet Manager RBAC AdminAzure built-in role
Grants read/write access to Kubernetes resources within a namespace in the fleet-managed hub cluster - provides write permissions on most objects within a a namespace, with the exception of ResourceQuota object and the namespace object itself. Applying this role at cluster scope will give access across all namespaces.
| Role ID | 434fb43a-c01c-447e-9f67-c3ad923cfaba |
|---|---|
| Category | Containers |
| Actions | 6 |
| Data actions | 33 |
Before you assign it
- It reaches the data, not just the resource. It has 33 data actions, such as reading blobs, secrets or messages.
What it can do
| Permission | What it allows |
|---|---|
Microsoft.Authorization/*/read | Any read operation on anything under Microsoft.Authorization |
Microsoft.Resources/subscriptions/operationresults/read | Get the subscription operation results. |
Microsoft.Resources/subscriptions/read | Gets the list of subscriptions. |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
Microsoft.ContainerService/fleets/read | Get fleet |
Microsoft.ContainerService/fleets/listCredentials/action | List fleet credentials |
Data actions
| Permission | What it allows |
|---|---|
Microsoft.ContainerService/fleets/apps/controllerrevisions/read | Reads controllerrevisions |
Microsoft.ContainerService/fleets/apps/daemonsets/* | Every operation under Microsoft.ContainerService/fleets/apps/daemonsets |
Microsoft.ContainerService/fleets/apps/deployments/* | Every operation under Microsoft.ContainerService/fleets/apps/deployments |
Microsoft.ContainerService/fleets/apps/statefulsets/* | Every operation under Microsoft.ContainerService/fleets/apps/statefulsets |
Microsoft.ContainerService/fleets/authorization.k8s.io/localsubjectaccessreviews/write | Writes localsubjectaccessreviews |
Microsoft.ContainerService/fleets/autoscaling/horizontalpodautoscalers/* | Every operation under Microsoft.ContainerService/fleets/autoscaling/horizontalpodautoscalers |
Microsoft.ContainerService/fleets/batch/cronjobs/* | Every operation under Microsoft.ContainerService/fleets/batch/cronjobs |
Microsoft.ContainerService/fleets/batch/jobs/* | Every operation under Microsoft.ContainerService/fleets/batch/jobs |
Microsoft.ContainerService/fleets/configmaps/* | Every operation under Microsoft.ContainerService/fleets/configmaps |
Microsoft.ContainerService/fleets/endpoints/* | Every operation under Microsoft.ContainerService/fleets/endpoints |
Microsoft.ContainerService/fleets/events.k8s.io/events/read | Reads events |
Microsoft.ContainerService/fleets/events/read | Reads events |
Microsoft.ContainerService/fleets/extensions/daemonsets/* | Every operation under Microsoft.ContainerService/fleets/extensions/daemonsets |
Microsoft.ContainerService/fleets/extensions/deployments/* | Every operation under Microsoft.ContainerService/fleets/extensions/deployments |
Microsoft.ContainerService/fleets/extensions/ingresses/* | Every operation under Microsoft.ContainerService/fleets/extensions/ingresses |
Microsoft.ContainerService/fleets/extensions/networkpolicies/* | Every operation under Microsoft.ContainerService/fleets/extensions/networkpolicies |
Microsoft.ContainerService/fleets/limitranges/read | Reads limitranges |
Microsoft.ContainerService/fleets/namespaces/read | Reads namespaces |
Microsoft.ContainerService/fleets/networking.k8s.io/ingresses/* | Every operation under Microsoft.ContainerService/fleets/networking.k8s.io/ingresses |
Microsoft.ContainerService/fleets/networking.k8s.io/networkpolicies/* | Every operation under Microsoft.ContainerService/fleets/networking.k8s.io/networkpolicies |
Microsoft.ContainerService/fleets/persistentvolumeclaims/* | Every operation under Microsoft.ContainerService/fleets/persistentvolumeclaims |
Microsoft.ContainerService/fleets/policy/poddisruptionbudgets/* | Every operation under Microsoft.ContainerService/fleets/policy/poddisruptionbudgets |
Microsoft.ContainerService/fleets/rbac.authorization.k8s.io/rolebindings/* | Every operation under Microsoft.ContainerService/fleets/rbac.authorization.k8s.io/rolebindings |
Microsoft.ContainerService/fleets/rbac.authorization.k8s.io/roles/* | Every operation under Microsoft.ContainerService/fleets/rbac.authorization.k8s.io/roles |
Microsoft.ContainerService/fleets/replicationcontrollers/* | Every operation under Microsoft.ContainerService/fleets/replicationcontrollers |
Microsoft.ContainerService/fleets/resourcequotas/read | Reads resourcequotas |
Microsoft.ContainerService/fleets/secrets/* | Every operation under Microsoft.ContainerService/fleets/secrets |
Microsoft.ContainerService/fleets/serviceaccounts/* | Every operation under Microsoft.ContainerService/fleets/serviceaccounts |
Microsoft.ContainerService/fleets/services/* | Every operation under Microsoft.ContainerService/fleets/services |
Microsoft.ContainerService/fleets/cluster.kubernetes-fleet.io/internalmemberclusters/read | Read fleet internalmembercluster resource |
Microsoft.ContainerService/fleets/placement.kubernetes-fleet.io/resourceoverrides/* | Every operation under Microsoft.ContainerService/fleets/placement.kubernetes-fleet.io/resourceoverrides |
Microsoft.ContainerService/fleets/placement.kubernetes-fleet.io/resourceoverridesnapshots/read | Read fleet resourceoverridesnapshot resource |
Microsoft.ContainerService/fleets/placement.kubernetes-fleet.io/works/read | Read fleet work resource |
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 Kubernetes Fleet Manager RBAC Admin" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Azure Kubernetes Fleet Manager RBAC Admin" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, '434fb43a-c01c-447e-9f67-c3ad923cfaba')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '434fb43a-c01c-447e-9f67-c3ad923cfaba')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "434fb43a-c01c-447e-9f67-c3ad923cfaba"
| 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