Esta documentação é referente à versão mais recente do GKE no Azure, lançada em novembro de 2021. Consulte as Notas de lançamento para mais informações.
Execute o comando a seguir para autenticar com sua conta Google Cloud:
gcloudauthlogin
Ative a API GKE Multi-Cloud e as dependências de serviço com os seguintes comandos. Esses comandos vão ativar as APIs para o projeto
configurado na Google Cloud CLI.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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)"]]