How to use API Key in Azure AI Foundry

eyuel 50 Reputation points
2025-10-17T08:31:02.74+00:00

How to utilize Azure AI Foundry's API Key? The official SDK azure-ai-projects for some reason doesn't support API Credential and there is no documentation how to use the API key with REST. On top of that, using DefaultAzureCredentials requires the user to have a Azure AI User role to manipulate agents . It's a whole mess, I just want to use API key and access Azure AI Foundry features.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.