You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deploy/README.md
+42-34Lines changed: 42 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,72 +1,78 @@
1
-
1. In your ADO organization you first need to install `Power BI Actions`. [Power BI Actions Extension!](https://marketplace.visualstudio.com/items?itemName=maikvandergaag.maikvandergaag-power-bi-actions)
1
+
# Deployment
2
2
3
-

3
+
The report can be deployed many different ways. Publishing from PowerBI Desktop is likely the fastest. For a more automated version which would include report version, you should use a repository. Below are the instructions on how to deploy your report in Azure DevOps repos, into your Power BI Workspace using a Azure DevOps Pipeline.
4
4
5
-
1. Get the PBI Workspace ID. Open Powershell in Administrative Mode and run:
6
-
### Install Power BI Management module
5
+
### Installing the ADO Extension
6
+
7
+
Install the extension
8
+
These instructions will show you how to install the Power BI Action extension that we are going to use for this tutorial,
9
+
10
+
1. Sign in to your Azure DevOps organization.
11
+
1. Go to Organization Settings.
12
+
1. Select Extensions.
13
+
1. Click on Browse Marketplace at the top right.
14
+
1. Search for and install `Power BI Actions`. [Power BI Actions Extension!](https://marketplace.visualstudio.com/items?itemName=maikvandergaag.maikvandergaag-power-bi-actions)
15
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 8 19 15 AM"src="https://github.com/user-attachments/assets/c79c98c2-55a4-4772-ba62-8cccc7a83bef">
16
+
17
+
18
+
### Get the PBI Workspace ID. Open Powershell in Administrative Mode and run:

32
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 8 04 48 AM"src="https://github.com/user-attachments/assets/1f4af117-5383-42cb-8403-1f59c162486e">
33
+
20
34
1. Set `API Permissions -> Add a permission`
21
35
1. Power BI Service
22
36
1. Chose Delegated permissions
23
37
1. Chose:
24
38
- Tenant.Read.All
25
39
- Tenant.ReadWrite.All
26
40
- Report.ReadWrite.All
27
-

41
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 8 06 50 AM"src="https://github.com/user-attachments/assets/238ed9b4-6caa-4f2c-8b13-4c0893dd4c67">
28
42
29
-
#Power BI
43
+
### Power BI
30
44
31
45
Setting up the tenant
32
46
The next step is to configure your Power BI,
33
47
34
48
1. Sign in to the Power BI portal.
35
49
1. Click the gear icon on the top right and select Admin portal.
36
50
1. Select the Tenant settings and scroll down to Developer Settings and allow service principals to use Power BI APIs
37
-

51
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 7 53 01 AM"src="https://github.com/user-attachments/assets/cb52ca8c-ada2-4446-ba43-b973f16bdcce">
38
52
39
-
#Configure a workspace
53
+
### Configure a workspace
40
54
Now create the workspace where your pipeline will publish the reports and grant permission to your Azure AD App to do this,
41
55
42
56
1. Select Workspaces tab.
43
57
1. Click the three vertical dots on the right of your new workspace.
44
58
1. Click Manage access.
45
-

46
-
47
-
1. Search the app that you have previously registered in Azure AD and grant it the permission of **Admin**.
48
-

59
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 8 02 30 AM"src="https://github.com/user-attachments/assets/9cdcbc1e-a790-4c82-b0c5-c62277af104c">
60
+
61
+
4. Search the app that you have previously registered in Azure AD and grant it the permission of **Admin**.
62
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 7 58 15 AM"src="https://github.com/user-attachments/assets/5fed83f5-491b-4098-96fe-4a99fd8ba4bc">
49
63
50
-
#Azure DevOps
51
-
52
-
Install the extension
53
-
These instructions will show you how to install the Power BI Action extension that we are going to use for this tutorial,
54
-
55
-
1. Sign in to your Azure DevOps organization.
56
-
1. Go to Organization Settings.
57
-
1. Select Extensions.
58
-
1. Click on Browse Marketplace at the top right.
59
-
60
-
#Create a new service connection
64
+
### Create a new service connection
61
65
1. Go to Project Settings.
62
66
1. Select Service connections.
63
67
1. Click the New service connection button and select Power BI Service Connection.
64
-

65
-
1. Fill in the parameters for the service connection and allow all pipelines to use this connection option.
68
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 8 11 27 AM"src="https://github.com/user-attachments/assets/b5dd095f-c210-43b5-b041-a00587b79226">
69
+
70
+
4. Fill in the parameters for the service connection and allow all pipelines to use this connection option. Be sure to pick the type of _Service Principal_
66
71
1. Click OK to create the connection.
67
-

72
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 8 14 41 AM"src="https://github.com/user-attachments/assets/01b6f4c9-3290-4de4-b076-b7a5fdd1c757">
68
73
69
-
#Creating the Build Pipeline
74
+
75
+
### Creating the Build Pipeline
70
76
It is time to create your build pipeline.
71
77
72
78
1. From the dashboard, select Pipelines.
@@ -78,7 +84,9 @@ It is time to create your build pipeline.
78
84
- AppSecret
79
85
- TenantId
80
86
- WorkspaceId
81
-

87
+
<imgwidth="600"alt="Screenshot 2024-07-17 at 8 16 38 AM"src="https://github.com/user-attachments/assets/0bbe7b5b-697c-4d4b-8f94-d8c8f8994903">
88
+
89
+
82
90
83
91
1. Add the following YAML snippet to your pipeline
84
92
```yaml
@@ -121,7 +129,7 @@ Deploy PBIX file using PowerShell with Service Principal Authentication
121
129
# Note: Ensure that the necessary modules and credentials are correctly set up for this script to work.
122
130
displayName: 'Deploy PBIX file to Power BI Workspace using PowerShell'
123
131
```
124
-
The remaining step is to save, check-in, and then watch it automatically deply
132
+
The remaining step is to save, check-in, and then watch it automatically deploy as the trigger is set to monitor the main branch
0 commit comments