Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
saimanjiri
Microsoft Employee
Microsoft Employee

Fabric SQL database is stopped working while calling from WebApi

Hello, 

We are calling Fabric SQL db from webapi through Managed Identity. It was working till yesterday without issue, suddenly started throwing below error from yesterday afternoon. We havent made any changes, what could be the reason? Please assist

 

saimanjiri_0-1752002584226.png

 

4 REPLIES 4
v-sgandrathi
Community Support
Community Support

Hi @saimanjiri,

Thank you for reaching out.
The error indicates that the managed identity your Web API uses may no longer have the necessary permissions to access the Fabric SQL database. This can happen due to expired tokens, permission changes, or updates in Azure AD or resource settings, even if you didn't make any changes.

Please check if the managed identity still exists as a database user by running: SELECT * FROM sys.database_principals WHERE name = '<YourManagedIdentityName>'. If it's missing, recreate it with: CREATE USER [<ManagedIdentityName>] FROM EXTERNAL PROVIDER; and assign roles like db_datareader and db_datawriter. Also, make sure your Web API is still set to use Managed Identity in the connection string. If the problem continues, please provide the identity name and error timestamp for further investigation.

 

Thank you and continue using Microsoft Fabric Community Forum.

Hi @saimanjiri,

 

We wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.

 

Thank you.

Hi @saimanjiri,

 

Just checking in -- have you had a chance to review and try the provided solution? Kindly share the status whenever you get a chance.

 

Looking forward to your response.

saimanjiri
Microsoft Employee
Microsoft Employee

Hello, 

We are calling Fabric SQL db from webapi through Managed Identity. It was working till yesterday without issue, suddenly started throwing below error from yesterday afternoon. We havent made any changes, what could be the reason? Please assist

 

saimanjiri_0-1752002676259.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors