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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kalluu91
New Member

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.