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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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