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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
caomayan
Helper I
Helper I

Azure SQL DB Mirror Error

I am using the SQL gateway connection in Azure SQL Database Managed Instance, and the System Assigned Managed Identity (SAMI) of the Azure SQL Managed Instance has been enabled as primary identity on Azue...Can you please help on the issue? Thank you!

 

caomayan_0-1774045359409.png

 

4 REPLIES 4
v-hjannapu
Community Support
Community Support

Hi @caomayan,

I would also take a moment to thank @deborshi_nag  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Regards,
Community Support Team.

Hi @caomayan,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We are always here to support you.


Regards,
Community Support Team.

deborshi_nag
Resident Rockstar
Resident Rockstar

Hello @caomayan

 

You can start by checking a couple of things:

 

1. The Managed Instance build doesn’t have the required managed‑identity objects

When Fabric sets up mirroring, it queries internal system objects on the Managed Instance to discover the managed identity. If those objects don’t exist, SQL returns an “Invalid object name” error, which Fabric surfaces as “Unable to retrieve SQL Server managed identities”. This almost always means the Managed Instance is not on a recent enough platform build.
 
You can quickly confirm this by running the following on the MI (typically in master):

SELECT @@VERSION;

 

SELECT name, type_desc
FROM sys.all_objects
WHERE name LIKE '%managed%identit%';
 
If no managed‑identity related system objects are returned, update the Managed Instance to the latest servicing level and try the mirroring setup again.
 
2. The gateway connection doesn’t have server‑level visibility

Fabric also needs to read server‑scoped metadata/DMVs during mirroring setup. If the login used by the SQL gateway connection can’t see server‑level state, Fabric fails during the identity discovery step.

 

The fix to grant server visibility to the gateway identity.

 

GRANT VIEW SERVER STATE TO [gateway_login_or_principal];

 

Once the Managed Instance is on a compatible build and the gateway identity has VIEW SERVER STATE, Fabric can successfully retrieve the managed identity and the mirroring setup completes without errors.
 
I trust this will be helpful. If you found this guidance useful, you are welcome to acknowledge with a Kudos or by marking it as a Solution.

Thanks so much @deborshi_nag for the quick reply, I have forwarded your comments to the users, will see if it works then accept as a solution! 🙂

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.

Top Kudoed Authors