All Insights
#AgenticAI
May 2026

Sunday Coffee & Code: Part 2 - Success - Copilot Studio Agent to Google Agent over A2A now working

Last week I got close, but authentication stopped the experiment from working properly. This week I went back in with a slightly different approach.

By Steve Harris

Last week I got close, but authentication stopped the experiment from working properly. This week I went back in with a slightly different approach.

Quick reminder - the architecture was:

๐—–๐—ผ๐—ฝ๐—ถ๐—น๐—ผ๐˜ ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐—”๐—ด๐—ฒ๐—ป๐˜ ๐˜๐—ผ

  • Google A2A connection
  • Google agent exposed through an A2A bridge
  • Cloud Run deployment
  • Gemini-based Driver Information Assistant Agent using Google tools.

The Google agent was a simple โ€œ๐˜‹๐˜ณ๐˜ช๐˜ท๐˜ฆ๐˜ณ ๐˜ˆ๐˜ด๐˜ด๐˜ช๐˜ด๐˜ต๐˜ข๐˜ฏ๐˜ต ๐˜ˆ๐˜จ๐˜ฆ๐˜ฏ๐˜ตโ€ for British Columbia driving questions, using ICBC (Insurance Corporation of British Columbia) as the source context.

The major change I tried this week was to use Gemini CLI in Google Cloud Shell to help build and deploy the agent - it was simply awesome.

It handled the Cloud Run deployment, found an error, rebuilt, and helped me get to a visible agent card at the expected .๐˜ธ๐˜ฆ๐˜ญ๐˜ญ-๐˜ฌ๐˜ฏ๐˜ฐ๐˜ธ๐˜ฏ/๐˜ข๐˜จ๐˜ฆ๐˜ฏ๐˜ต-๐˜ค๐˜ข๐˜ณ๐˜ฅ.๐˜ซ๐˜ด๐˜ฐ๐˜ฏ endpoint. The build and deployment logs were so easier to follow than a vague โ€œ๐˜ด๐˜ฐ๐˜ฎ๐˜ฆ๐˜ต๐˜ฉ๐˜ช๐˜ฏ๐˜จ ๐˜ช๐˜ด ๐˜ฉ๐˜ข๐˜ฑ๐˜ฑ๐˜ฆ๐˜ฏ๐˜ช๐˜ฏ๐˜จโ€ status message.

Once the agent card was visible, Microsoft Copilot Studio was able to discover the Google agent and add it as an A2A-connected agent (the first win over last week).

The second issue was the API authentication error. The root cause appears to have been the deployment approach. Using the Gemini API meant the agent expected an API key. Switching to Vertex AI mode (GOOGLE_GENAI_USE_VERTEXAI=TRUE ), and a few other small changes, allowed the deployment to use service account authentication instead. After redeploying with Vertex AI, the Copilot Studio Agent successfully called the Google agent.

A few practical observations:

  • Copilot Studio did a better job this time discovering the agent card.
  • The raw output in the Copilot test window was genuinely useful for troubleshooting.
  • The fallback to the Copilot Studio agentโ€™s own knowledge when A2A failed is worth being aware of, and can be dealt with via configuration.
  • The authentication model needs to be designed deliberately before this is used for anything serious.
  • The deployment instructions need to be precise, especially around Gemini API versus Vertex AI.

The broad takeaway for me is that A2A is promising and works and for a simple PoC not that difficult at all to get working. ๐—™๐—ฟ๐—ผ๐—บ ๐—ฎ ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ ๐—ฝ๐—ฒ๐—ฟ๐˜€๐—ฝ๐—ฒ๐—ฐ๐˜๐—ถ๐˜ƒ๐—ฒ A2A makes cross-platform agent orchestration plausible, but the real architecture work is not the agent conversation itself. It is discovery, identity, failure handling, observability, data boundaries, deployment repeatability, and governance.

While still a weekend experiment, but this one felt like progress and an architecture pattern worthy of further assessment.

See the Copliot Studio Agent in action.

Want to Discuss This Topic?

Steve is always happy to have a direct conversation.