Example of managing version control and testing of Gen1 Power BI dataflows without Bring Your Own Data Storage
Important Note #1: This guide is customized to Power BI for U.S. Commercial environment. If you are trying to set this up for another Microsoft cloud environment (like U.S. Gov Cloud), please check Microsoft's documentation for the appropriate URLs. They will be different from the U.S. Commercial environment.
Important Note #2: This guide uses scripts that I built and tested on environments I have access to. Please review all scripts if you plan for production use, as you are ultimately response for the code that runs in your environment.
- Prerequisites
- Installation Steps
- Version Control
- Testing
- Power BI Premium Per User license assigned to a service account. If you do not have a Premium Per User license, use the "Buy Now" feature on Microsoft's site or if you don't have access to do that, please contact your administrator (be nice!).
-
Azure CLI installed with devops extension (az extension add --name azure-devops).
-
Signed up for Azure DevOps.
-
For Azure DevOps you must be a member of the Project Collection Administrators group, the Organization Owner, or have the Create new projects permission set to Allow.
-
Open PowerShell Version 7 and enter the following script:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/kerski/pbi-dataops-dataflows-polling-method/main/Scripts/Setup/Setup-PPU.ps1" -OutFile "./Setup-PPU.ps1"
Important Note #3: You may need to run Unblock-File ./Setup-PPU.ps1 depending on your PowerShell execution policies.
-
This will download the setup scripts to the current folder. Run ".\Setup-PPU.ps1" in PowerShell.
-
During the install process you will be prompted to enter the following information:
- The name of the development workspace you wish to create in the Power BI Service.
- The name (UPN/email) of the Service account you created in the Prerequisites section.
- The password for the (UPN/email).
- The name of the project you wish to create in Azure DevOps.
-
During the course of the install you will be prompted to enter your Microsoft 365 credentials. Depending on your environment you may have a browser tab appear to sign-in. After signing in you can return to the PowerShell window. In addition, if you don't have the Power BI Management Shell or Azure DevOps CLI package installed, you will be asked to install. Please affirm you wish to install those packages if prompted.
-
If the script runs successfully you will be presented with a message similar in the image below.
Note: For those working with Microsoft Hosted Agents under the free offering, you need to be careful how often you run the installed pipeline as you may hit the cap.
Now that installation steps are completed, please review and share the instructions for Cloning the Project