Skip to content

Commit 2970f65

Browse files
ayeshurunAlon Yeshurun
andauthored
Release 02/18/2025 (#241)
Co-authored-by: Alon Yeshurun <alonyeshurun+microsoft@microsoft.com>
1 parent bf06966 commit 2970f65

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

.NET Core/Embed for your organization/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
### Set up a Power BI app
1414

15-
1. Register an Azure AD app using the [Power BI embedding setup tool](https://app.powerbi.com/embedsetup). For more information see [Register an Azure AD application to use with Power BI](https://docs.microsoft.com/power-bi/developer/embedded/register-app).
15+
1. Register an Azure AD app following the instructions [here](https://go.microsoft.com/fwlink/?linkid=2134543#register-your-app).
1616

1717
2. Verify that your Azure AD app have the **Read all datasets** and **Read all reports** permissions.
1818

.NET Framework/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Follow the steps on [aka.ms/EmbedForCustomer](https://aka.ms/embedforcustomer)
3030

3131
## Set up a Power BI app
3232

33-
1. Register an Azure AD app using the [Power BI embedding setup tool](https://app.powerbi.com/embedsetup). For more information see [Register an Azure AD application to use with Power BI](https://docs.microsoft.com/power-bi/developer/embedded/register-app).
33+
1. Register an Azure AD app following the instructions [here](https://go.microsoft.com/fwlink/?linkid=2134543#register-your-app).
3434

3535
2. Verify that your Azure AD app have the **Read all dashboards**, **Read all reports**, and **Read all workspaces** permissions.
3636

React-TS/Embed for your organization/UserOwnsData/src/Config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Refer https://aka.ms/PowerBIPermissions for complete list of Power BI scopes
1010

1111
// URL used for initiating authorization request
12-
export const authorityUrl: string = "https://login.microsoftonline.com/common/";
12+
export const authorityUrl: string = "https://login.microsoftonline.com/";
1313

1414
// End point URL for Power BI API
1515
export const powerBiApiUrl: string = "https://api.powerbi.com/";
@@ -24,4 +24,7 @@ export const clientId: string = "";
2424
export const workspaceId: string = "";
2525

2626
// Id of the report to be embedded
27-
export const reportId: string = "";
27+
export const reportId: string = "";
28+
29+
// Directory (tenant) ID of the AAD app
30+
export const tenantId: string = "";

React-TS/Embed for your organization/UserOwnsData/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function generateMsalConfig() {
2626
const msalConfig = {
2727
auth: {
2828
clientId: config.clientId,
29-
authority: config.authorityUrl,
29+
authority: `${config.authorityUrl}${config.tenantId}`,
3030
redirectUri: "http://localhost:3000",
3131
},
3232
cache: {

React-TS/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Embed a Power BI report
1010

11-
1. Register an Azure AD app using the [Power BI embedding setup tool](https://app.powerbi.com/embedsetup). For more information see [Register an Azure AD application to use with Power BI](https://docs.microsoft.com/power-bi/developer/embedded/register-app).
11+
1. Register an Azure AD app following the instructions [here](https://go.microsoft.com/fwlink/?linkid=2134543#register-your-app).
1212

1313
2. Verify that your Azure AD app have the **Read all reports** permissions.
1414

@@ -32,6 +32,7 @@ To embed a report the following details must be specified within Config.ts:
3232
| clientId | Id of the AAD application registered as a Server-side app |
3333
| workspaceId | Id of the Power BI workspace where the report is hosted |
3434
| reportId | Id of the report to be embedded |
35+
| tenantId | Directory (tenant) ID of the AAD application |
3536

3637
3. Open terminal and install required dependencies by executing the following command:<br>
3738
`npm install`

0 commit comments

Comments
 (0)