Edit

Share via


Publish a Power BI Desktop file to Power BI

Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019

This article explains how to share your Power BI Desktop file, along with its datasets, measures, and charts, by creating a dashboard in Power BI.

Prerequisites

Category Requirements
Access levels - Project member.
- At least Basic access.
Permissions By default, project members have permission to query Analytics and create views. For more information about other prerequisites regarding service and feature enablement and general data tracking activities, see Permissions and prerequisites to access Analytics.

Publish to Power BI

  1. If you're using an Analytics view, make sure the view is set to Shared, not Private.

  2. Open your Power BI Desktop file that contains the data you want to publish.

  3. On the Home tab, select Publish.

    Screenshot shows highlighted Publish button for Power BI Desktop file.

  4. Follow the prompts for signing in. If you don't have a Power BI account, create one when prompted. Select Sign in.

  5. After publishing, to view your report in Power BI, select the Open 'file name' in Power BI link.

    Screenshot shows successful publish and link to open pbix file.

Configure refresh schedule

Scheduled refresh allows datasets to be updated automatically at specified intervals, ensuring that reports and dashboards reflect the most current data.

  1. Ensure that your Power BI report is saved to your Power BI workspace.

  2. In your Power BI workspace, select the ellipsis (...) next to your dataset and select Schedule Data Refresh.

  3. On the schedule refresh page, choose which data connections you want to refresh.

  4. Set the refresh frequency and specify the time of day for the refresh to occur. The refresh can start as early as five minutes before the scheduled time, but delays of up to one hour might occur.

  5. Find the dataset for your report, named after your file, and select the ellipsis ... next to it.

    Select the dataset

  6. Under Data source credentials, select the Edit credentials link next to ODATA.

    Update odata credentials

  7. Choose the appropriate authentication method:

    Important

    We recommend the more secure Microsoft Entra tokens over higher-risk personal access tokens. Learn more about our efforts to reduce PAT usage. Review our authentication guidance to choose the right authentication mechanism for your needs.

    • oAuth2 (recommended) for Microsoft Entra ID.

    Configure Areas dialog

    • Basic for Personal Access Token (PAT) credentials.

    Important

    If you use a PAT, remember it expires after a set interval. When it expires, update the credentials. Otherwise, the report stops updating with the latest data, even though it still displays existing data.

  8. Select Sign in.

After you complete these steps, Power BI refreshes your data on the schedule you configure, using the credentials you provided.

Important

Any data included in the Analytics view and published to Power BI is accessible to all users with access to the report, regardless of the project permissions set in Azure DevOps.