Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hi Lisa MM
If you're encountering a 401 Unauthorized error in Azure AI Foundry, follow these steps:
- Check API Access Settings: Go to Azure Portal → AI Foundry Project → Networking and confirm external access settings.
- Verify API Key & Headers: Ensure the request includes
-H "api-key: "instead ofAuthorization. - Confirm Subscription & Permissions: Check that your subscription is active and has the correct RBAC roles.
- Review API Documentation: Refer to Azure AI Foundry API Access Guide for authentication details.
- Test & Debug: Try an API call in Playground, validate headers, and check endpoint correctness.
I Hope this helps. Do let me know if you have any further queries. If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!