Simple RAG Consumption with Microsoft Teams AI Agent > Using the Simple RAG Consumption with Microsoft Teams AI Agent recipe > Step 2. Configure and publish the Gemini connection
  

Step 2. Configure and publish the Gemini connection

Configure the API key to authenticate the Gemini connection, and then publish the GeminiAIAgentConsumptionConnection connection.
  1. 1Open the GeminiAIAgentConsumptionConnection connection.
  2. 2From the Type list, select Gemini.
  3. 3From the Runtime Environment list, select Cloud Server or any Secure Agent.
  4. 4In the Connection Properties section, enter the API key in the API_Key property. The API_Key property authenticates Gemini connection requests.
  5. 5Save and publish the connection.