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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Charline_74
Helper III
Helper III

How to update the credentials of a dataset with a Service Account

Hello,

 

I have set up a deployment pipeline and so I am using a Service Principal. And I would like to add a refresh task for the dataset once deployed. However when this task is executed I get this error:

 

Charline_74_0-1679673935291.png

 

Do you have a solution to update the credentials automatically with a Service Principal ?

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Charline_74 , 

 

According to your statment, I think you want to update the dataset credential with Service Principal.

 

For reference:

Refresh a Power BI Dataset with PowerShell and a Service Principal

The Tenant Management Application for Power BI

Just for example,

  1.  Allow service principals to use Power BI APIs in Admin Portal Allow service principals to use Power BI APIsvrzhoumsft_0-1679903693353.png
  2.  Add the Service Principal as an Admin to the workspace

 

Then verify if you are experiencing a problem similar to the one in the posts below. If so, you can refer to the solution to solve your problem.

How to update Azure SQL datasource credentials of PowerBI dataset programmatically?

 vrzhoumsft_2-1679903692889.png

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @Charline_74 , 

 

According to your statment, I think you want to update the dataset credential with Service Principal.

 

For reference:

Refresh a Power BI Dataset with PowerShell and a Service Principal

The Tenant Management Application for Power BI

Just for example,

  1.  Allow service principals to use Power BI APIs in Admin Portal Allow service principals to use Power BI APIsvrzhoumsft_0-1679903693353.png
  2.  Add the Service Principal as an Admin to the workspace

 

Then verify if you are experiencing a problem similar to the one in the posts below. If so, you can refer to the solution to solve your problem.

How to update Azure SQL datasource credentials of PowerBI dataset programmatically?

 vrzhoumsft_2-1679903692889.png

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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