Configurare ADC per un ambiente di sviluppo basato su cloud
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Quando utilizzi un ambiente di sviluppo basato sul cloud come Cloud Shell o Cloud Code, lo strumento utilizza le credenziali che hai fornito al momento dell'accesso e gestisce le autorizzazioni richieste. Google Cloud Non puoi utilizzare
gcloud CLI per configurare ADC in questi ambienti. Se
devi utilizzare un account utente diverso per configurare ADC o configurare ADC
utilizzando un account di servizio, utilizza un ambiente di sviluppo locale o una
risorsa di calcolo Google Cloud come ambiente di sviluppo.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eCloud-based Google Cloud development environments like Cloud Shell and Cloud Code automatically manage credentials and authorizations using your sign-in information.\u003c/p\u003e\n"],["\u003cp\u003eThe gcloud CLI cannot be used to configure Application Default Credentials (ADC) in Cloud Shell or Cloud Code environments.\u003c/p\u003e\n"],["\u003cp\u003eFor alternative user accounts or service account ADC configuration, utilize a local or Google Cloud compute environment.\u003c/p\u003e\n"],["\u003cp\u003eExplore various resources on Cloud Code, Cloud Shell, ADC credential discovery, client libraries, and REST authentication methods for more information.\u003c/p\u003e\n"]]],[],null,["When you use a Google Cloud cloud-based development environment such as\nCloud Shell or Cloud Code, the tool uses the credentials you provided\nwhen you signed in, and manages any authorizations required. You cannot use\nthe gcloud CLI to configure ADC in these environments. If\nyou need to use a different user account to configure ADC, or configure ADC\nusing a service account, use a local development environment or a\nGoogle Cloud compute resource as your development environment.\n\nWhat's next\n\n- Get more information about [Cloud Code](/code/docs).\n- Get more information about [Cloud Shell](/shell/docs).\n- Learn more about [how ADC finds credentials](/docs/authentication/application-default-credentials).\n- [Authenticate for using Cloud Client Libraries](/docs/authentication/client-libraries).\n- [Authenticate for using REST](/docs/authentication/rest).\n- Explore [authentication methods](/docs/authentication)."]]