# Configure the Google Cloud CLI

Before using GKE 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](https://cloud.google.com/sdk/docs/install).

3. Install the `kubectl`
   [additional component](https://cloud.google.com/sdk/docs/components#additional_components).

4. If you haven't already done so,
   [create your Google Cloud project](https://docs.cloud.google.com/resource-manager/docs/creating-managing-projects.md.txt#creating_a_project).
   Save your project's name, you'll use it later.

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

   ```bash
   gcloud auth login
   ```
6. Enable the GKE 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.

   ```bash
   gcloud services enable gkemulticloud.googleapis.com
   gcloud services enable gkeconnect.googleapis.com
   gcloud services enable gkehub.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
   gcloud services enable opsconfigmonitoring.googleapis.com
   gcloud services enable kubernetesmetadata.googleapis.com
   ```

## What's next

- [Configure the Azure CLI](https://docs.cloud.google.com/kubernetes-engine/multi-cloud/docs/azure/how-to/configure-azure-cli.md.txt)