Share via

How to make use of Azure AI Services with Microsoft Entra ID and Also how to activate it if we need to use it as a SDK

Yogesh Dhavale (LTIMindtree Limited) 20 Reputation points Microsoft External Staff
2026-06-19T11:23:32.7333333+00:00

Hello Team ,

In the New Azure AI Foundry we need to perform multilingual Implementation in which we need to make use of Azure Language - Language Detection , Azure Translator - Text Translation , Azure Speech - Speech To Text , Azure Speech - Speech Translation when trying to access this resources need to understand how to enable it and make it available in our project to use . Also when going through some of the sample codes mentioned it requires Authentication Key but in our project we have disabled the authentication key and make use of Microsoft Entra ID for authentication .

Can you please guide us and help us to make use of this Services in our implementation

Azure Speech in Foundry Tools

1 answer

Sort by: Most helpful
  1. Marcin Policht 92,630 Reputation points MVP Volunteer Moderator
    2026-06-19T12:36:12.9866667+00:00

    First provision a unified Azure AI services multi-service resource in the Azure Portal, which bundles Language, Translator, and Speech into a single instance. Next, in the Azure AI Foundry Portal, use the Operate management dashboard to add a connection to your multi-service resource, and explicitly select Microsoft Entra ID or Managed Identity as your authentication type to bond these tools to your project workspace.

    Because API keys are disabled on your resource, your application needs to rely on token-based authentication via the Azure.Identity SDK. To authorize these data-plane actions, modify RBAC settings of your Azure AI Services resource by assigning the Cognitive Services User role to your application's identity. This should ensure that your identity has the permissions needed to handle websocket streaming and authorization tokens for Speech-to-Text and Speech Translation operations.

    In your application code, you can use the New Azure AI Foundry Project SDK alongside your token credentials to access these services . By initializing the AIProjectClient with a DefaultAzureCredential and your project's unique connection string, you can dynamically reference your connected services. For Language Detection and Text Translation, you pass the token credential directly into their respective client builders along with your custom endpoint URL. For the Azure Speech SDK, you will use your identity credential to fetch an OAuth 2.0 access token scoped to the cognitive services environment, then pass that string into your speech configuration using the authorization token setter method.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    0 comments No comments

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.