From f39edabb14767be21bf04cf0961cea27496d9328 Mon Sep 17 00:00:00 2001 From: hari-silvers Date: Fri, 24 Apr 2026 16:51:27 +0530 Subject: [PATCH 1/3] cloud run docs: Add authentication prerequisites to deployment guide --- .../adk/gemini_enterprise/cloud_run/README.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/samples/agent/adk/gemini_enterprise/cloud_run/README.md b/samples/agent/adk/gemini_enterprise/cloud_run/README.md index 930e59f82..c4b60ec41 100644 --- a/samples/agent/adk/gemini_enterprise/cloud_run/README.md +++ b/samples/agent/adk/gemini_enterprise/cloud_run/README.md @@ -14,6 +14,35 @@ Gemini-based agent that can communicate with users with A2UI components. By the end of this guide, you will have an agent running on Cloud Run and can display A2UI components on Gemini Enterprise UI. +## Prerequisites + +Before running the deployment script, ensure you have the following: + +- A [Google Cloud Project](https://cloud.google.com/resource-manager/docs/creating-managing-projects) with billing enabled. +- [Google Cloud SDK](https://cloud.google.com/sdk/docs/install) installed and up to date. + +### Authentication + +Authenticate with Google Cloud by running the following commands: + +```bash +gcloud auth login +gcloud auth application-default login +gcloud config set project +``` + +> **Note:** `application-default login` is required because the deployment uses Vertex AI (`GOOGLE_GENAI_USE_VERTEXAI=TRUE`). + +### Enable Required APIs + +```bash +gcloud services enable \ + run.googleapis.com \ + cloudbuild.googleapis.com \ + aiplatform.googleapis.com \ + --project +``` + ## Steps There are 2 steps: From 8c2a15c8cd83c801cbc25dbc2f075787b8a681f5 Mon Sep 17 00:00:00 2001 From: hari <118797402+hari-silvers@users.noreply.github.com> Date: Sat, 25 Apr 2026 12:53:07 +0530 Subject: [PATCH 2/3] Update samples/agent/adk/gemini_enterprise/cloud_run/README.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- samples/agent/adk/gemini_enterprise/cloud_run/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/agent/adk/gemini_enterprise/cloud_run/README.md b/samples/agent/adk/gemini_enterprise/cloud_run/README.md index c4b60ec41..b59519b2f 100644 --- a/samples/agent/adk/gemini_enterprise/cloud_run/README.md +++ b/samples/agent/adk/gemini_enterprise/cloud_run/README.md @@ -40,6 +40,8 @@ gcloud services enable \ run.googleapis.com \ cloudbuild.googleapis.com \ aiplatform.googleapis.com \ + artifactregistry.googleapis.com \ + iam.googleapis.com \ --project ``` From 79d9a2794f7f1757939501e23e1aa949b56bec0f Mon Sep 17 00:00:00 2001 From: hari-silvers Date: Sat, 25 Apr 2026 14:25:16 +0530 Subject: [PATCH 3/3] application login command was not neccessary for deployment --- samples/agent/adk/gemini_enterprise/cloud_run/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/agent/adk/gemini_enterprise/cloud_run/README.md b/samples/agent/adk/gemini_enterprise/cloud_run/README.md index b59519b2f..9cf749664 100644 --- a/samples/agent/adk/gemini_enterprise/cloud_run/README.md +++ b/samples/agent/adk/gemini_enterprise/cloud_run/README.md @@ -27,12 +27,9 @@ Authenticate with Google Cloud by running the following commands: ```bash gcloud auth login -gcloud auth application-default login gcloud config set project ``` -> **Note:** `application-default login` is required because the deployment uses Vertex AI (`GOOGLE_GENAI_USE_VERTEXAI=TRUE`). - ### Enable Required APIs ```bash