← cd ~/roles
// roles/azure · containers
Azure Kubernetes Fleet Manager Hub Cluster User RoleAzure built-in role
Grants read access to Azure Kubernetes Fleet Manager as well as the Kubernetes config file to connect to the fleet-managed hub cluster.
| Role ID | 850c5848-fc51-4a9a-8823-f220370626e3 |
|---|---|
| Category | Containers |
| Actions | 2 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.ContainerService/fleets/listCredentials/action | List fleet credentials |
Microsoft.ContainerService/fleets/read | Get fleet |
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 Hub Cluster User Role" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Azure Kubernetes Fleet Manager Hub Cluster User Role" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, '850c5848-fc51-4a9a-8823-f220370626e3')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '850c5848-fc51-4a9a-8823-f220370626e3')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "850c5848-fc51-4a9a-8823-f220370626e3"
| 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