Configure the Power BI operational data feed in BizTalk Server
Starting with BizTalk Server 2016 Feature Pack 1, send tracking to Power BI using the Power BI template provided, or create your own.
What is operational data
Operational data is information on the instances and messages flowing through your BizTalk Server environment. The operational data feed is the same data you get looking at Group Hub in BizTalk Server Administration. The data is accessed and queried using visualization tools, including Power BI.
The feed includes the following data tables:
- Application data
- AS2 Status Records
- Batching information
- Instance information
- Interchange Aggregations Records
- Interchange Status Records
- Tracked Events
- Transaction reports
- Transaction sets
PowerBI.com is a great resource to understand and learn more about Power BI.
- Download and install Power BI Desktop on any computer that has network access to your BizTalk Server
- Install Feature Pack 2, or newer feature pack, on your BizTalk Server
- Install IIS on the BizTalk Server. In most BizTalk Server environments, IIS is already installed. See Hardware and Software Requirements for BizTalk Server 2016. Confirm IIS is installed by opening Internet Information Services Manager.
- Optional. Install and configure a Power BI Gateway to connect PowerBI.com with your on-premises BizTalk Server. If you're not using an on-premises BizTalk Server, then you don't need the gateway.
Step 1: Enable operational data
Run Windows PowerShell as Administrator (Start menu, type PowerShell, right click, and select Run as administrator).
Go to the BizTalk installation folder (for example, type:
cd 'C:\Program Files (x86)\Microsoft BizTalk Server 2016\').
In the following text, replace
Default Web Site,
domain\groupwith your values:
FeaturePack.ConfigureServices.ps1 -Service operationaldata -WebSiteName '<Default Web Site>' -ApplicationPool <operationalDataServiceAppPool> -ApplicationPoolUser <domain>\<user\> -ApplicationPoolUserPassword <password> -AuthorizationRoles '<domain>\<group1\>, <domain>\<group2\>, <domain>\<user\>, <domain>\<user2\>'
Service: The service to be configured (OperationalData for Power BI)
WebSiteName: The existing IIS web site that hosts the service. The default value is Default Web Site.
ApplicationPool: The Application Pool used by the service. If it exists, a new one is not created. The default value is DefaultAppPool.
ApplicationPoolUser: Configures the application pool to run as this user identity. Must have BizTalk Server Operator, or higher privileges.
ApplicationPoolUserPassword: Password for the ApplicationPoolUser
AuthorizationAccount: List of authorized Groups or Users that can use this service
In the following example, we use the
Default Web Site, create an application pool named
PowerBIAppPool, run the appPool as the
BIZTALK-serviceacctas the user account password, and give the
BizTalk Server Administratorsgroup permissions. Be sure to enter the following, including the single quotes surrounding values with spaces:
FeaturePack.ConfigureServices.ps1 -Service operationaldata -WebSiteName 'Default Web Site' -ApplicationPool PowerBIAppPool -ApplicationPoolUser bootcampbts2016\btsservice -ApplicationPoolUserPassword BIZTALK-serviceacct -AuthorizationRoles 'BOOTCAMPBTS2016\BizTalk Server Administrators'
When complete, the BizTalkOperationalDataService application is created within IIS:
To confirm it’s working, browse to
If you are prompted to sign-in, sign in with an account that is member of the domain\group you entered in the previous step (
-AuthorizationRoles 'BOOTCAMPBTS2016\BizTalk Server Administrators').
If you are prompted to open or save BizTalkOperationalDataService.json, then your install completed. You can save it locally, and then open it in notepad or Visual Studio to see the contents.
The BizTalkOperationalDataService application in IIS uses a web.config file. Elements within web.config are case sensitive. So when you execute the Windows PowerShell script, be sure to enter the correct case for
-AuthorizationRoles value. If you’re not sure of the case, here’s an easy way to find out:
- Open Computer Management, and expand Local Users and Groups.
- Select Groups, and scroll down to the SQLServer… groups.
- In the following example, notice BOOTCAMPBTS2016 is in all caps. If you see all caps, then enter the computer name in all caps.
Step 2: Use the template in Power BI
Download and install the Power BI Desktop on your BizTalk Server. You can select to open it, which is optional. If you have a work or school account, you may have access to Power BI. Try signing in with that account. Or, you can try it for free after signing up.
\Program Files (x86)\Microsoft BizTalk Server 2016\OperationalDataServicefolder, and open the
Power BI desktop opens, and you are prompted for a URL. Enter the
http://localhost/<yourWebSite>URL that you created for your OData feed. For example, enter
http://localhost/BizTalkOperationalDataService. Your URL looks similar to the following:
Select Load. The window loads and connects to the different oData sources in the BizTalkOperationalDataService.json file. When it completes, the dashboard shows details about your environment.
If you get
couldn't authenticate with the credentials provided message similar to the following, then it’s possible your application pool identity doesn’t have enough access to the BizTalk Server databases. You can change the appPool identity within IIS to an account with more privileges, maybe your signed-in user account (which has local admin privileges).
This is just the beginning. Power BI also has a gateway that can be installed on an on-premises BizTalk Server. Using the gateway, you can publish your dashboard, get real-time data, and create a schedule to refresh the dashboard. The following blog does a great job detailing these steps:
The Guided Learning is also a great place to learn more about Power BI, and all the things you can do.