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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
juhokunnari
New Member

Service principal, managing on premise gateways

According to instructions here https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/adddatasourceuser, you should be able to add service principal as user for on premise data gateway.

This is needed to make CI/CD pipeline for power bi reports in our use case.

 

Following instructions I'm getting error "DMTS_DatasourceAccessRightIsNotSupportedError". Is there something wrong with our service principal, access rights etc or why this cannot be done? It prevents us from making an efficient chain for reports from development to production.

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @juhokunnari ,

Please review the content in the following threads, hope they can help you.

DMTS_DatasourceAccessRightIsNotSupportedError when trying to grant SPN account access to gateway (last post)

Service principal with Power BI and Data Gateway

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The first thread you linked points to instructions https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/adddatasourceuser#example-for-giving-rea... which quite clearly states "example for giving ReadOverrideEffectiveIdentity access right to a service principal". So in theory it should work but in practice you will face an DMTS error.

Is this something that is an known issue and will be fixed? Otherwise those instructions are quite misleading and should be modified.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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