The azure auth plugin has been removed.

nirmala 0 Reputation points
2023-04-26T06:01:48.5766667+00:00

error: The azure auth plugin has been removed. Please use the https://github.com/Azure/kubelogin kubectl/client-go credential plugin instead. See https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins for further details

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,968 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,301 Reputation points Moderator
    2023-05-04T22:39:57.9633333+00:00

    Hi@nirmala , based on the error message you shared, it means the Azure auth plugin for Kubernetes has been removed and is no longer supported. Try using the kubectl client-go credential plugin provided by the kubelogin project.

    Follow these steps to install and use the kubelogin plugin:

    Install the kubelogin plugin by following the instructions in the official documentation: https://github.com/Azure/kubelogin#installation

    Once the plugin is installed, you can use it to authenticate to your Kubernetes cluster using your Azure AD credentials. To do this, run the following command:

    kubectl login azure
    

    This will open a browser window and prompt you to sign in with your Azure AD credentials. Once you have signed in, the kubelogin plugin will generate a Kubernetes configuration file with the necessary credentials.

    You can now use kubectl to interact with your Kubernetes cluster as usual. The kubelogin plugin will automatically handle authentication using your Azure AD credentials.

    please note that the kubelogin plugin requires that your Kubernetes cluster is configured to use Azure AD for authentication. If your cluster is not configured for Azure AD authentication, you will need to configure it before you can use the kubelogin plugin. You can find more information about configuring Azure AD authentication for Kubernetes in the official documentation: https://docs.microsoft.com/en-us/azure/aks/azure-ad-integration

    Hope that helps.

    Best,

    Grace


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.