This documentation is for the most recent version of Anthos clusters on Azure, released on November 3rd. See the Release notes for more information.
Stay organized with collections Save and categorize content based on your preferences.

Configure the Google Cloud CLI

Before using Anthos clusters on Azure, you must install the Google Cloud CLI and enable required APIs.

To configure Google Cloud CLI, run the following commands:

  1. Check your Google Cloud CLI installation with the following command:

    gcloud version
    
  2. If the Google Cloud CLI is not installed, or if its version is earlier than 402.0.0, Install the latest version of the Google Cloud CLI.

  3. Install the kubectl additional component.

  4. If you haven't already done so, create your Google Cloud project. Save your project's name, you'll use it later.

  5. Run the following command to authenticate with your Google Cloud account:

    gcloud auth login
    
  6. Enable the Anthos Multi-Cloud API and its service dependencies with the following commands. These commands will enable the APIs for the project configured in your Google Cloud CLI.

    gcloud services enable gkemulticloud.googleapis.com
    gcloud services enable gkeconnect.googleapis.com
    gcloud services enable connectgateway.googleapis.com
    gcloud services enable cloudresourcemanager.googleapis.com
    gcloud services enable anthos.googleapis.com
    gcloud services enable logging.googleapis.com
    gcloud services enable monitoring.googleapis.com
    

What's next