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

Azure Kubernetes Service Arc Contributor RoleAzure built-in role

Grants access to read and write Azure Kubernetes Services hybrid clusters

Role ID5d3f1697-4507-4d08-bb4a-477695db5f82
CategoryContainers
Actions37
Data actions0

What it can do

PermissionWhat it allows
Microsoft.HybridContainerService/Locations/operationStatuses/readread operationStatuses
Microsoft.HybridContainerService/Locations/operationStatuses/writewrite operationStatuses
Microsoft.HybridContainerService/Operations/readread Operations
Microsoft.HybridContainerService/kubernetesVersions/readGets the supported kubernetes versions from the underlying custom location
Microsoft.HybridContainerService/kubernetesVersions/writePuts the kubernetes version resource type
Microsoft.HybridContainerService/kubernetesVersions/deleteDelete the kubernetes versions resource type
Microsoft.HybridContainerService/provisionedClusterInstances/readGets the Hybrid AKS provisioned cluster instance
Microsoft.HybridContainerService/provisionedClusterInstances/writeCreates the Hybrid AKS provisioned cluster instance
Microsoft.HybridContainerService/provisionedClusterInstances/deleteDeletes the Hybrid AKS provisioned cluster instance
Microsoft.HybridContainerService/provisionedClusterInstances/agentPools/readGets the agent pool in the Hybrid AKS provisioned cluster instance
Microsoft.HybridContainerService/provisionedClusterInstances/agentPools/writeCreates the agent pool in the Hybrid AKS provisioned cluster instance
Microsoft.HybridContainerService/provisionedClusterInstances/agentPools/deleteDeletes the agent pool in the Hybrid AKS provisioned cluster instance
Microsoft.HybridContainerService/provisionedClusterInstances/upgradeProfiles/readread upgradeProfiles
Microsoft.HybridContainerService/skus/readGets the supported VM skus from the underlying custom location
Microsoft.HybridContainerService/skus/writePuts the VM SKUs resource type
Microsoft.HybridContainerService/skus/deleteDeletes the Vm Sku resource type
Microsoft.HybridContainerService/virtualNetworks/readGets the Hybrid AKS virtual network
Microsoft.HybridContainerService/virtualNetworks/writePuts the Hybrid AKS virtual network
Microsoft.HybridContainerService/virtualNetworks/deleteDeletes the Hybrid AKS virtual network
Microsoft.ExtendedLocation/customLocations/deploy/actionDeploy permissions to a Custom Location resource
Microsoft.ExtendedLocation/customLocations/readGets an Custom Location resource
Microsoft.Kubernetes/connectedClusters/ReadRead connectedClusters
Microsoft.Kubernetes/connectedClusters/WriteWrites connectedClusters
Microsoft.Kubernetes/connectedClusters/DeleteDeletes connectedClusters
Microsoft.Kubernetes/connectedClusters/listClusterUserCredential/actionList clusterUser credential
Microsoft.AzureStackHCI/clusters/readGets clusters
Microsoft.Resources/deployments/readGets or lists deployments.
Microsoft.Resources/deployments/writeCreates or updates an deployment.
Microsoft.Resources/deployments/deleteDeletes a deployment.
Microsoft.Resources/deployments/cancel/actionCancels a deployment.
Microsoft.Resources/deployments/validate/actionValidates a deployment.
Microsoft.Resources/deployments/whatIf/actionPredicts template deployment changes.
Microsoft.Resources/deployments/exportTemplate/actionExport template for a deployment
Microsoft.Resources/deployments/operations/readGets or lists deployment operations.
Microsoft.Resources/deployments/operationstatuses/readGets or lists deployment operation statuses.
Microsoft.HybridContainerService/provisionedClusterInstances/hybridIdentityMetadata/deleteDeletes the hybrid identity metadata proxy resource.
Microsoft.HybridContainerService/provisionedClusterInstances/hybridIdentityMetadata/writeCreates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning.

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 Service Arc Contributor Role" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Kubernetes Service Arc Contributor Role" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '5d3f1697-4507-4d08-bb4a-477695db5f82')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '5d3f1697-4507-4d08-bb4a-477695db5f82')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "5d3f1697-4507-4d08-bb4a-477695db5f82"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other containers roles

Find the smallest role for a task →