Onboarding a Kubernetes cluster to Azure Arc
In order to onboard Kubernetes to Azure Arc, we need to create a service principal for authentication and deploy the Helm chart to deploy and configure the Azure Arc agents. We will continue to use Azure Cloud Shell for this section.
Registering the required resource providers
Azure Arc enabled Kubernetes requires the following ARM resource providers to be registered on your subscription. Please run the following commands in Cloud Shell to register the resource providers:
az provider register --namespace Microsoft.Kubernetes az provider register --namespace Microsoft.KubernetesConfiguration
It may take 5 to 10 minutes for this operation to be completed. You can view the status by running the following commands:
az provider show -n Microsoft.Kubernetes -o table az provider show -n Microsoft.KubernetesConfiguration -o table
The output of the preceding commands is as shown in the following screenshot: