QuestionQ6
Implement generative AI and agentic solutionsYou have a Microsoft Foundry project named Project1 that contains the following:
- An OpenAPI tool that calls an external API
- A project connection named Connection1 that stores the API key for the external API
When an agent calls the OpenAPI tool, the API returns a 401 Unauthorized error, and traces show that the API key header is not being sent.
You need to ensure that the OpenAPI tool automatically includes the API key from Connection1 on every request.
What should you do?
- A Enable identity passthrough so that the tool uses the Microsoft Entra token of the caller.
- B Add the API key header manually to the OpenAPI specification.
- C Configure the tool to use the default connection of Project1.
- D Connect the tool to Connection1.
Community Discussion