Edit, create, and view your documents, spreadsheets, and presentations — all without internet access. No network connection? With Google Docs Offline, you can access Google Docs, Sheets, Slides, and Drive without connecting to the internet. Posted 1/30/14 4:16 AM, 13 messages.
-->- What is ghbmnnjooekpmoecnnnilnnbdlolhkhi keyword after analyzing the system lists the list of keywords related and the list of websites with related content, in.
- Win32/PiriformBundle - posted in Virus, Trojan, Spyware, and Malware Removal Help: Hi all Windows Defender has identified this on my laptop as a PUA (potentially unwanted application).
- Auto enabled domains for Google Docs Offline support.
Learn how to embed analytical content within your business process applications for the national cloud. You can use the Power BI .NET SDK with the Power BI JavaScript API to embed a report, dashboard, or tile, into your web applications.
Power BI also supports national clouds.
The different national clouds are:
U.S. Government Community Cloud (GCC)
U. S. Government Community Cloud High (GCC High)
U. S. Military Contractors (DoDCON)
U. S. Military (DoD)
Power BI for Germany cloud
Power BI for China cloud
To get started with this walkthrough, you need a Power BI account. If you don't have an account set up, then depending on the type of government or country you can choose the right national cloud for you. You can sign up for a U. S. government Power BI account, a Power BI for Germany cloud account or a Power BI for China cloud account.
Note
Looking to embed a dashboard for your organization instead? See, Integrate a dashboard into an app for your organization.
To integrate a dashboard into a web app, you use the Power BI API, and an Azure Active Directory (AD) authorization access token to get a dashboard. Then, you load the dashboard using an embed token. The Power BI API provides programmatic access to specific Power BI resources. For more information, see Power BI REST API, [Power BI .NET SDK, and the Power BI JavaScript API.
Download the sample
This article shows the code used in the App Owns Data sample on GitHub. To follow along with this walkthrough, you can download the sample.
Government Community Cloud (GCC):
Note
Embedding Power BI content from a Government Community Cloud (GCC), can only be done with a Microsoft 365 SKU. Other national cloud customers can use Microsoft 365 or Azure SKUs.
Overwrite Cloud.config file with GCCCloud.config content.
Update applicationId (Native app applicationId), workspaceId, the user (your master user), and password in Web.config file.
Add the GCC parameters in the web.config file as follows.
- Military Contractors (DoDCON):
Overwrite Cloud.config file with TBCloud.config content.
Update applicationId (Native app applicationId), workspaceId, the user (your master user), and password in Web.config file.
Add the DoDCON parameters in the web.config file as follows.
- Military (DoD):
Overwrite Cloud.config file with PFCloud.config content.
Update applicationId (Native app applicationId), workspaceId, the user (your master user), and password in Web.config file.
Add the DoDCON parameters in the web.config file as follows.
- Power BI for Germany cloud parameters
Overwrite Cloud.config file with Power BI for Germany cloud content.
Update applicationId (Native app applicationId), workspaceId, the user (your master user), and password in Web.config file.
Add the Power BI for Germany cloud parameters in the web.config file as follows.
- Power BI for China cloud parameters
Overwrite Cloud.config file with Power BI for China cloud content.
Update applicationId (Native app applicationId), workspaceId, the user (your master user), and password in Web.config file.
Add the Power BI for China cloud parameters in the web.config file as follows.
Step 1 - register an app in Azure AD
Register your application with Azure AD to make REST API calls. For more information, see Register an Azure AD app to embed Power BI content. Since there are different national cloud affiliations, there are distinct URLs to register your application.
Government Community Cloud (GCC) -
https://app.powerbigov.us/apps
Military Contractors (DoDCON) -
https://app.high.powerbigov.us/apps
Military (DoD) -
https://app.mil.powerbigov.us/apps
Power BI for Germany cloud -
https://app.powerbi.de/apps
Power BI for China cloud -
https://app.powerbi.cn/apps
If you downloaded the Embedding for your customer sample, you would use the applicationId you get, so that the sample can authenticate to Azure AD. To configure the sample, change the applicationId in the web.config file.
Step 2 - get an access token from Azure AD
Within your application, you need to get an access token, from Azure AD, before you can make calls to the Power BI REST API. For more information, see Authenticate users and get an Azure AD access token for your Power BI app. Since there are different national cloud affiliations, there are distinct URLs to get an access token for your application.
Government Community Cloud (GCC) -
https://login.microsoftonline.com
Military Contractors (DoDCON) -
https://login.microsoftonline.us
Military (DoD) -
https://login.microsoftonline.us
Power BI for Germany cloud -
https://login.microsoftonline.de
Power BI for China cloud -
https://login.chinacloudapi.cn
You can see examples of these access tokens within each content item task in the ControllersHomeController.cs file.
Step 3 - get a content item
To embed your Power BI content, you need to do a couple of things to make sure it embeds correctly. While all of these steps can be done with the REST API directly, the sample application and the examples here use the .NET SDK.
Create the Power BI Client with your access token
With your access token, you want to create your Power BI client object, which allows you to interact with the Power BI APIs. You create your Power BI client object by wrapping the AccessToken with a Microsoft.Rest.TokenCredentials object.
Get the content item you want to embed
Use the Power BI client object to retrieve a reference to the item you want to embed. You can embed dashboards, tiles, or reports. Here is an example of how to retrieve the first dashboard, tile, or report from a given workspace.
A sample is available within ControllersHomeController.cs of the App Owns Data sample.
Reports
Dashboards
Tiles
Create the embed token
Using the JavaScript API, you can generate an embed token. The embed token is specific to the item you're embedding. Anytime you embed a piece of Power BI content, you need to create a new embed token for it. For more information, including which accessLevel to use, see Embed Token.
Important
Because embed tokens are intended for developer testing only, the number of embed tokens a Power BI master account can generate is limited. A capacity must be purchased for production embedding scenarios. There is no limit to embed token generation when a capacity is purchased.
A sample is available within ControllersHomeController.cs of the Embedding for your organization sample.
A class is created for EmbedConfig and TileEmbedConfig. A sample is available within ModelsEmbedConfig.cs and ModelsTileEmbedConfig.cs.
Reports
Dashboards
Tiles
Step 4 - load an item using JavaScript
You can use JavaScript to load a dashboard into a div element on your web page. The sample uses an EmbedConfig/TileEmbedConfig model along with views for a dashboard, tile, or report. For a full sample of using the JavaScript API, you can use the Microsoft Power BI Embedded Sample.
An application sample is available within the Embedding for your organization sample.
ViewsHomeEmbedDashboard.cshtml
ViewsHomeEmbedTile.cshtml
ViewsHomeEmbedReport.cshtml
Next steps
A sample application is available on GitHub for you to review. The above examples are based on that sample. For more information, see Embedding for your organization sample.
For more information about JavaScript API, reference Power BI JavaScript API.
For more information about for Power BI for Germany cloud, reference Power BI for Germany cloud FAQ
Considerations and limitations
More questions? Try asking the Power BI Community