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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kalluu91
Regular Visitor

Execute Power BI deployment from Azure Pipeline

Hello experts,

 

I have created a Power BI Deployment pipeline and I have invoked this pipeline from an Azure DevOps Pipeline using the Power BI Automation Tool extension.

Everything works fine except when I deploy with the service account, the report does not work anymore because the data source credentails is not correct.

 

Do you have any solution/suggestions?

 

Here is my step in azure devops pipeline:

```

- task: DeploymentPipelines-Deploy@1
  displayName: "Deploy reports"
  inputs:
    pbiConnection: "POWER_BI_CLIENT"
    pipeline: "$(pipelineid)"
    stageOrder: "Test"
    waitForCompletion: true
    deployType: "All"
    createNewWS: false
    allowCreateArtifact: true
    allowOverwriteArtifact: true
    updateApp: false
    allowOverwriteTargetArtifactLabel: false
    allowPurgeData: false
    allowSkipTilesWithMissingPrerequisites: false
    allowTakeOver: true

```

 

Thanks a lot,

Kim Anh

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @kalluu91,

I'd like to suggest you double check if the service account you used to deploy the reports has the corresponding permissions to access the data source. (the service account should have required credentials and access rights to connect to the data source)

If the service account does not have the correct credentials, you can update the data source credentials in the Power BI report before deploying it.
For the methods to update credentials, you can choose to manually verify the data source credentials or use the Power BI REST API/PowerShell cmdlets to update the data source credentials programmatically.

How to Change Data Source Credentials in Power BI 

Documentation about update data source credentials using the Power BI REST API:

Datasets - Update Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @kalluu91,

I'd like to suggest you double check if the service account you used to deploy the reports has the corresponding permissions to access the data source. (the service account should have required credentials and access rights to connect to the data source)

If the service account does not have the correct credentials, you can update the data source credentials in the Power BI report before deploying it.
For the methods to update credentials, you can choose to manually verify the data source credentials or use the Power BI REST API/PowerShell cmdlets to update the data source credentials programmatically.

How to Change Data Source Credentials in Power BI 

Documentation about update data source credentials using the Power BI REST API:

Datasets - Update Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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