Jika Anda belum melakukannya,
buat project Google Cloud .
Simpan nama project Anda, Anda akan menggunakannya nanti.
Jalankan perintah berikut untuk melakukan autentikasi dengan akun Google Cloud
Anda:
gcloudauthlogin
Aktifkan GKE Multi-Cloud API dan dependensi layanannya dengan
perintah berikut. Perintah ini akan mengaktifkan API untuk project
yang dikonfigurasi di Google Cloud CLI Anda.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-31 UTC."],[],[],null,["# Configure the Google Cloud CLI\n==============================\n\nBefore using GKE on Azure, you must install the Google Cloud CLI and enable\nrequired APIs.\n\nTo configure Google Cloud CLI, run the following commands:\n\n1. Check your Google Cloud CLI installation with the following command:\n\n gcloud version\n\n2. If the Google Cloud CLI is not installed, or if its version is earlier than\n 402.0.0,\n [Install the latest version of the Google Cloud CLI](https://cloud.google.com/sdk/docs/install).\n\n3. Install the `kubectl`\n [additional component](https://cloud.google.com/sdk/docs/components#additional_components).\n\n4. If you haven't already done so,\n [create your Google Cloud project](/resource-manager/docs/creating-managing-projects#creating_a_project).\n Save your project's name, you'll use it later.\n\n5. Run the following command to authenticate with your Google Cloud\n account:\n\n gcloud auth login\n\n6. Enable the GKE Multi-Cloud API and its service dependencies with the\n following commands. These commands will enable the APIs for the project\n configured in your Google Cloud CLI.\n\n gcloud services enable gkemulticloud.googleapis.com\n gcloud services enable gkeconnect.googleapis.com\n gcloud services enable gkehub.googleapis.com\n gcloud services enable connectgateway.googleapis.com\n gcloud services enable cloudresourcemanager.googleapis.com\n gcloud services enable anthos.googleapis.com\n gcloud services enable logging.googleapis.com\n gcloud services enable monitoring.googleapis.com\n gcloud services enable opsconfigmonitoring.googleapis.com\n gcloud services enable kubernetesmetadata.googleapis.com\n\nWhat's next\n-----------\n\n- [Configure the Azure CLI](/kubernetes-engine/multi-cloud/docs/azure/how-to/configure-azure-cli)"]]