Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am currently mirroring an Azure SQL Database in a workspace using a Service Principal. There have been a few issues but it mostly works ok. However it was suggested trying a Workspace Identity so we dont need to manage the Service Principal secret.
So I have setup the Workspace Identity, it provided a name and it created an Enterprise Application (principal) in Entra. So according to this document
I should go to the database and create a login and a user
CREATE LOGIN [Workspace Identity Name] FROM EXTERNAL PROVIDER;CREATE USER [Workspace Identity Name] FOR LOGIN [workspace identity Name];
GRANT SELECT, ALTER ANY EXTERNAL MIRROR, VIEW DATABASE PERFORMANCE STATE, VIEW DATABASE SECURITY STATE TO [Workspace Identity Name];This should provide the Workspace Identity access to handle mirroring. Very similar to how it was previously set up with a Service Principal.
However I now get the error
This principal type is not supported in Azure SQL Database
I also tried setting it up with the command
CREATE USER [<Name>] FROM EXTERNAL PROVIDER
WITH OBJECT_ID = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX';and this also fails.
So I tried creating a group in Entra. Adding the Workspace Identity Service Principal into that group and then applying the permissions to the group. There was no error when applying permissions but the mirror does not work with an error indication it does not have permission.
Can anyone clarify how to set up the Workspace Identity with Azure SQL Server? Is there a logical reason why its different to setting up other Service Principals?
Solved! Go to Solution.
@Zanqueta Thanks for the reply, appreciate you taking the time to do that.
I have managed to get the mirroring working. Having the Workspace Identity as part of a group, with the group created as a user on the db with relevant permissions
CREATE USER [Workspace Identity Name] FOR LOGIN [workspace identity Name]; GRANT SELECT, ALTER ANY EXTERNAL MIRROR, VIEW DATABASE PERFORMANCE STATE, VIEW DATABASE SECURITY STATE TO [Workspace Identity Name];
This failed for me initially, I expect there may have been a delay getting it all to work.
I set up a connection using the workspace identity and assigned that to a report to see if it would refresh and it did. I then retried assigning the connection to a mirror and it worked as well.
@Zanqueta Thanks for the reply, appreciate you taking the time to do that.
I have managed to get the mirroring working. Having the Workspace Identity as part of a group, with the group created as a user on the db with relevant permissions
CREATE USER [Workspace Identity Name] FOR LOGIN [workspace identity Name]; GRANT SELECT, ALTER ANY EXTERNAL MIRROR, VIEW DATABASE PERFORMANCE STATE, VIEW DATABASE SECURITY STATE TO [Workspace Identity Name];
This failed for me initially, I expect there may have been a delay getting it all to work.
I set up a connection using the workspace identity and assigned that to a report to see if it would refresh and it did. I then retried assigning the connection to a mirror and it worked as well.
Hi @JAnder , thank you for sharing this information. Please consider marking the answer as the accepted solution so that other community members can easily follow it.
Hi @JAnder,
This principal type is not supported in Azure SQL Database
If this response was helpful in any way, I’d gladly accept a 👍much like the joy of seeing a DAX measure work first time without needing another FILTER.
Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop 🌀.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |