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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
PowerBI88
Resolver I
Resolver I

How to configure service principal for a data source on Service

Hi,

can you point me to the steps required as well to the information needed to configure a service principal for a data source to achieve automatic data refresh on service?

 

Thank you

2 ACCEPTED SOLUTIONS
Aymen
Frequent Visitor

Hello @PowerBI88 ,

if you want to know how to create and configure a service account you will find below tow links that can help you:
https://docs.microsoft.com/en-us/powershell/module/addsadministration/new-adserviceaccount?view=win1... 
https://docs.microsoft.com/en-us/powershell/azure/create-azure-service-principal-azureps?view=azps-5... 

 

but if you already have a service account and you want to use it to authenticate to a data source just give it the necessary permissions as described below:
https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-lo... 

 

I hope that answers your question.

 

Best Regards,
Aymen

View solution in original post

Hi @PowerBI88 ,

 

Please check out this blog:

https://radacad.com/power-bi-get-data-from-azure-sql-database 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
PowerBI88
Resolver I
Resolver I

Thank you. In the end, I managed to create the login for the service principal and I assigned it db owner permissions and the data refresh from service is working 🙂

Aymen
Frequent Visitor

Hello @PowerBI88 ,

if you want to know how to create and configure a service account you will find below tow links that can help you:
https://docs.microsoft.com/en-us/powershell/module/addsadministration/new-adserviceaccount?view=win1... 
https://docs.microsoft.com/en-us/powershell/azure/create-azure-service-principal-azureps?view=azps-5... 

 

but if you already have a service account and you want to use it to authenticate to a data source just give it the necessary permissions as described below:
https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-lo... 

 

I hope that answers your question.

 

Best Regards,
Aymen

Thank you for the useful links.

 

Sorry, my fault, I did not specify that my service principal is generated from Azure Active directory. So, the point is, in order to configure this principal on power bi service/power bi desktop in a datasource (that can be a SQL Azure, a Kusto query on Log Analytics, etc) which credentials do I need? Is it ok just user and password of the service principal?

 

Thank you

Hi @PowerBI88 ,

 

Please check out this blog:

https://radacad.com/power-bi-get-data-from-azure-sql-database 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors