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

Azure Kubernetes Fleet Manager Hub Agent RoleAzure built-in role

Grants access to Azure resources needed by Azure Kubernetes Fleet Manager hub agents.

Role IDde2b316d-7a2c-4143-b4cd-c148f6a355a1
CategoryContainers
Actions7
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Network/publicIPAddresses/readGets a public IP address definition.
Microsoft.Network/trafficManagerProfiles/readGet the Traffic Manager profile configuration. This includes DNS settings, traffic routing settings, endpoint monitoring settings, and the list of endpoints routed by this Traffic Manager profile.
Microsoft.Network/trafficManagerProfiles/writeCreate a Traffic Manager profile, or modify the configuration of an existing Traffic Manager profile. This includes enabling or disabling a profile and modifying DNS settings, traffic routing settings, or endpoint monitoring settings. Endpoints routed by the Traffic Manager profile can be added, removed, enabled or disabled.
Microsoft.Network/trafficManagerProfiles/deleteDelete the Traffic Manager profile. All settings associated with the Traffic Manager profile will be lost, and the profile can no longer be used to route traffic.
Microsoft.Network/trafficManagerProfiles/azureEndpoints/readGets an Azure Endpoint which belongs to a Traffic Manager Profile, including all the properties of that Azure Endpoint.
Microsoft.Network/trafficManagerProfiles/azureEndpoints/writeAdd a new Azure Endpoint in an existing Traffic Manager Profile or update the properties of an existing Azure Endpoint in that Traffic Manager Profile.
Microsoft.Network/trafficManagerProfiles/azureEndpoints/deleteDeletes an Azure Endpoint from an existing Traffic Manager Profile. Traffic Manager will stop routing traffic to the deleted Azure Endpoint.

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 Kubernetes Fleet Manager Hub Agent Role" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Kubernetes Fleet Manager Hub Agent Role" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'de2b316d-7a2c-4143-b4cd-c148f6a355a1')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'de2b316d-7a2c-4143-b4cd-c148f6a355a1')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "de2b316d-7a2c-4143-b4cd-c148f6a355a1"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other containers roles

Find the smallest role for a task →