使用 Power BI 連接到 Application InsightsConnect to Application Insights with Power BI

使用 Power BI 從 Application Insights 遙測建立功能強大的自訂儀表板。Use Power BI to create powerful custom dashboards from Application Insights telemetry. 想像以新方法運用應用程式遙測。Envision your app telemetry in new ways. 將來自多個應用程式或元件服務的度量合併到一個儀表板上。Combine metrics from multiple apps or component services onto one dashboard. 第一版的 Power BI Application Insights 內容套件,包含常用的度量小工具,例如作用中使用者、頁面檢視、工作階段、瀏覽器和作業系統版本,以及地圖的使用者地理分佈。This first release of the Power BI content pack for Application Insights includes widgets for common usage-related metrics such as active users, page view, sessions, browser and OS version, and geographic distribution of users in a map.

連接到 Power BI 的 Application Insights 內容套件Connect to the Application Insights content pack for Power BI.

注意

在 Azure Preview 入口網站中必須要有應用程式的 Application Insights 概觀刀鋒視窗存取權,才能進行連接。Access to the Application Insights overview blade for your application in the Azure Preview Portal is required to connect. 下方有需求的詳細資料。More details on requirements below.

如何連接How to connect

  1. 選取左側瀏覽窗格底部的 [取得資料] 。Select Get Data at the bottom of the left navigation pane.

    [取得資料] 按鈕

  2. 在 [服務] 方塊中,選取 [取得] 。In the Services box, select Get.

    [取得服務] 按鈕

  3. 選取 [Application Insights] > [取得]。Select Application Insights > Get.

    Application Insights 內容套件

  4. 提供想要連接的應用程式詳細資料,包括 Application Insights 資源名稱資源群組訂閱識別碼Provide the details of the application you want to connect to, including Application Insights Resource Name, Resource Group, and Subscription ID. 如需詳細資訊,請參閱尋找 Application Insights 參數See Finding your Application Insights parameters below for more details.

    [Application Insights 連接] 對話方塊

  5. 選取 [登入] 並依照畫面連接。Select Sign In and follow the screens to connect.

    Application Insights 連接登入

  6. 匯入程序會自動開始。The import process begins automatically. 完成時會顯示通知,新的儀表板、報表和模型也會出現在瀏覽窗格中,並以星號標示。When complete, a notification is shown and a new dashboard, report, and dataset appear in the Navigation Pane marked with an asterisk. 選取儀表板以檢視匯入的資料。Select the dashboard to view your imported data.

    Application Insights 儀表板

接下來呢?What now?

包含的內容What's included

Application Insights 內容套件包含下列資料表和計量︰The Application Insights content pack includes the following tables and metrics:

- <span data-ttu-id="c1f01-134">ApplicationDetails</span><span class="sxs-lookup"><span data-stu-id="c1f01-134">ApplicationDetails</span></span>  
- <span data-ttu-id="c1f01-135">UniqueUsersLast7Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-135">UniqueUsersLast7Days</span></span>   
- <span data-ttu-id="c1f01-136">UniqueUsersLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-136">UniqueUsersLast30Days</span></span>   
- <span data-ttu-id="c1f01-137">UniqueUsersDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-137">UniqueUsersDailyLast30Days</span></span>  
- <span data-ttu-id="c1f01-138">UniqueUsersByCountryLast7Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-138">UniqueUsersByCountryLast7Days</span></span>  
- <span data-ttu-id="c1f01-139">UniqueUsersByCountryLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-139">UniqueUsersByCountryLast30Days</span></span>   
- <span data-ttu-id="c1f01-140">PageViewsDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-140">PageViewsDailyLast30Days</span></span>   
- <span data-ttu-id="c1f01-141">SessionsLast7Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-141">SessionsLast7Days</span></span>   
- <span data-ttu-id="c1f01-142">SessionsLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-142">SessionsLast30Days</span></span>  
- <span data-ttu-id="c1f01-143">PageViewsByBrowserVersionDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-143">PageViewsByBrowserVersionDailyLast30Days</span></span>   
- <span data-ttu-id="c1f01-144">UniqueUsersByOperatingSystemLast7Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-144">UniqueUsersByOperatingSystemLast7Days</span></span>   
- <span data-ttu-id="c1f01-145">UniqueUsersByOperatingSystemLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-145">UniqueUsersByOperatingSystemLast30Days</span></span>    
- <span data-ttu-id="c1f01-146">SessionsDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-146">SessionsDailyLast30Days</span></span>   
- <span data-ttu-id="c1f01-147">SessionsByCountryLast7Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-147">SessionsByCountryLast7Days</span></span>   
- <span data-ttu-id="c1f01-148">SessionsByCountryLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-148">SessionsByCountryLast30Days</span></span>   
- <span data-ttu-id="c1f01-149">PageViewsByCountryDailyLast30Days</span><span class="sxs-lookup"><span data-stu-id="c1f01-149">PageViewsByCountryDailyLast30Days</span></span>   

尋找參數Finding parameters

您的資源名稱、資源群組和訂閱識別碼,在 Azure 入口網站都找得到。Your Resource Name, Resource Group and Subscription ID can all be found in the Azure Portal. 選取名稱會開啟詳細的檢視,您可以使用 [程式集] 下拉式清單尋找所有需要的值。Selecting the Name will open a detailed view and you can use the Essentials drop-down to find all the values you need.

Application Insights 參數

複製並貼到 Power BI 的這些欄位:Copy and paste these into the fields into Power BI:

Application Insights 參數

後續步驟Next steps

開始使用 Power BIGet started in Power BI

取得 Power BI 中的資料Get data in Power BI