MCPcopy
hub / github.com/microsoft/PowerBI-Developer-Samples

github.com/microsoft/PowerBI-Developer-Samples @main sqlite

repository ↗ · DeepWiki ↗
238 symbols 575 edges 80 files 59 documented · 25%
README

topic: sample languages: - csharp - js - python - java - ts - powershell products: - power-bi - dotnet-core - dotnet - node-js - react - flask


Build Status

This repository contains Power BI Embedded solutions in 5 different frameworks to suit different scenarios as per requirements. In addition, it has samples for calling the Power BI REST APIs using PowerShell.

Available solutions for embedding Power BI content: * Embed for your customers - aka App Owns Data * .NET Framework * .NET Core * Python * Java * Node JS * Embed for your organization - aka User Owns Data * .NET Framework * .NET Core * React TS

Solutions for encrypting credentials and updating data sources are available in the following frameworks: * .NET Core * Python * Node JS

Note: 1. README.md files specific to samples are present in their respective folders. 2. Before running the samples on a Windows system, ensure that the length of their path location is not exceeding the limit of 260 characters.

Power BI Developer documentation

Support

  • Feature Requests: Submit your ideas and suggestions to the Fabric Ideas Portal, where you can also vote on ideas from other developers.
  • Bug Reports and Technical Assistance: Visit the Fabric Developer Community Forum. Our team and community experts are ready to assist you.
  • Additional Support: Contact your account manager or reach out to the Fabric Support Team.

Extension points exported contracts — how you extend this code

AppProps (Interface)
(no doc)
React-TS/Embed for your organization/UserOwnsData/src/App.tsx
AppState (Interface)
(no doc)
React-TS/Embed for your organization/UserOwnsData/src/App.tsx

Core symbols most depended-on inside this repo

get_request_header
called by 5
Python/Embed for your customers/AppOwnsData/services/pbiembedservice.py
getAccessToken
called by 5
Java/EncryptCredentials/src/main/java/com/encryptcredentialsample/encryptcredential/services/AzureADService.java
getRequestHeader
called by 5
NodeJS/Embed for your customers/AppOwnsData/src/embedConfigService.js
showErrorDetails
called by 4
Python/Encrypt credentials/Encryption sample/static/js/index.js
validateUpdateDatasourceForm
called by 4
Python/Encrypt credentials/Encryption sample/static/js/index.js
disableDOMElements
called by 4
Python/Encrypt credentials/Encryption sample/static/js/index.js
get_access_token
called by 4
Python/Encrypt credentials/Encryption sample/services/aadservice.py
generateResponseForException
called by 4
Java/EncryptCredentials/src/main/java/com/encryptcredentialsample/encryptcredential/controllers/DataSourceController.java

Shape

Method 85
Function 78
Class 65
Route 8
Interface 2

Languages

Python35%
TypeScript34%
Java31%

Modules by API surface

Java/Embed for your customers/AppOwnsData/src/main/webapp/resources/js/powerbi.min.js36 symbols
Python/Encrypt credentials/Encryption sample/static/js/index.js15 symbols
React-TS/Embed for your organization/UserOwnsData/src/App.tsx13 symbols
Python/Encrypt credentials/Encryption sample/app.py10 symbols
Python/Encrypt KeyPair Credentials/encrypt.py8 symbols
Python/Embed for your customers/AppOwnsData/services/pbiembedservice.py7 symbols
NodeJS/Embed for your customers/AppOwnsData/src/embedConfigService.js7 symbols
Java/EncryptCredentials/src/main/java/com/encryptcredentialsample/encryptcredential/controllers/DataSourceController.java7 symbols
Python/Embed for your customers/AppOwnsData/app.py6 symbols
Java/EncryptCredentials/src/main/java/com/encryptcredentialsample/encryptcredential/services/AzureADService.java5 symbols
Java/Embed for your customers/AppOwnsData/src/main/java/com/embedsample/appownsdata/services/AzureADService.java5 symbols
Python/Encrypt credentials/Encryption sample/services/datavalidationservice.py4 symbols

Dependencies from manifests, versioned

com.microsoft.azure:msal4j1.7.1 · 1×
javax.servlet:jstl1.2 · 1×
org.apache.httpcomponents:httpclient4.5.13 · 1×
org.json:json20200518 · 1×
org.slf4j:slf4j-jdk141.7.30 · 1×
org.springframework:spring-webmvc
@azure/msal-browser3.7.1 · 1×
@azure/msal-node1.12.0 · 1×
@azure/msal-react2.0.10 · 1×
@types/react16.9.23 · 1×
@types/react-dom16.9.5 · 1×
@typescript-eslint/eslint-plugin6.20.0 · 1×

For agents

$ claude mcp add PowerBI-Developer-Samples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact