You are configuring an Azure Kubernetes Service (AKS) cluster that will connect to an Azure Container Registry. You need to use the auto-generated service principal to authenticate to the Azure Container Registry. What should you create?

Experience Level: Junior
Tags: Azure CloudAzure Container RegistryAzure Kubernetes Service

Answer

  • When you create an AKS cluster, Azure also creates a service principal to support cluster operability with other Azure resources.
  • This service principal can already authenticate to AAD (since it was created in AAD).
  • But it needs to have RBAC permissions on the ACR Registry to pull images.
  • To assign the permissions, you need to create an Azure RBAC role assignment that grants the cluster's service principal access to the container registry.
Related Azure Cloud job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
Azure Container Registry
Azure Container Registry

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
Azure Kubernetes Service
Azure Kubernetes Service

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
AZ-104 Microsoft Azure Administrator Preparation
AZ-104 Microsoft Azure Administrator Preparation

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
AZ-500 Microsoft Azure Security Technologies Preparation
AZ-500 Microsoft Azure Security Technologies Preparation

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself