Azure SQL Managed Identity in .Net Core without using access token

DevBuster007 186 Reputation points
2022-11-21T16:03:48.473+00:00

We are using Azure SQL to connect from .Net 6.0 application.
It's a very high traffic application with millions of read write operations. Getting access token every time will slowdown the system.
We want to use managed Identity but without using the code to fetch Access Token. Please let us know if MS has this capability for now?

Azure SQL Database
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alberto Morillo 35,401 Reputation points MVP Volunteer Moderator
    2022-11-21T16:50:24.973+00:00

    Both user-assigned and system-assigned identities make use of tokens. Identities cannot be used without token.

    You can consider file-based authentication when token is not needed. Please get more information from here.


  2. Bas Pruijn 956 Reputation points
    2022-11-22T12:33:37.793+00:00

    Instead of looking for an insecure way of connecting to your SQL Server, why not look into connection pooling? https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql-server-connection-pooling

    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.