Skip to content

Commit

Permalink
Add docs on how to configure reports using SAS tokens microsoft#859 &…
Browse files Browse the repository at this point in the history
… Add docs to test/demo reports using Power BI desktop microsoft#958 microsoft#968 (microsoft#970)

Co-authored-by: Michael Flanakin <[email protected]>
  • Loading branch information
Zeo-shark and flanakin authored Sep 27, 2024
1 parent 1d4650c commit 902be1d
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/_reporting/hubs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Open, extensible, and scalable cost governance for the enterprise.
- [🙋‍♀️ Why FinOps hubs?](#️-why-finops-hubs)
- [🌟 Benefits](#-benefits)
- [📦 What's included](#-whats-included)
- [📚 Explore the FinOps reports](#-explore-the-finops-reports)
- [➕ Create a new hub](#-create-a-new-hub)
- [🛫 Get started with hubs](#-get-started-with-hubs)
- [🔐 Required permissions](#-required-permissions)
Expand Down Expand Up @@ -98,6 +99,16 @@ Once deployed, you can report on the data in Power BI or by connecting to the st

<br>

## 📚 Explore the FinOps reports

Each report in the FinOps toolkit is available as a PBIX or PBIT file. The PBIX file contains sample data that can be viewed in Power BI desktop without connecting to your account.

To visualize the reports available, simply download the PBIX Power BI report file from the desired [release](https://github.com/microsoft/finops-toolkit/releases) and open the report in Power BI Desktop. From there, you can navigate through the different pages of the report, which have been pre-filled with test data.

![Screenshot of the Rate optimization report with test data](../../assets/images/hubs/rate-optimization-report.png)

<br>

## ➕ Create a new hub

1. **Deploy your FinOps hub.**
Expand Down
36 changes: 34 additions & 2 deletions docs/_reporting/power-bi/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Publish new Power BI reports based on FinOps toolkit starter kits, extend them t
<summary class="fs-2 text-uppercase">On this page</summary>

- [➕ Setup your first report](#-setup-your-first-report)
- [🔑 Use a SAS token to connect data to a report](#-use-a-sas-token-to-connect-data-to-a-report)
- [📋 Copy queries from a toolkit report](#-copy-queries-from-a-toolkit-report)
- [🛠️ Connect manually](#️-connect-manually)
- [🚚 Migrate from the Cost Management template app](#-migrate-from-the-cost-management-template-app)
Expand Down Expand Up @@ -70,14 +71,45 @@ The FinOps toolkit Power BI reports include pre-configured visuals, but are not
- Set **RangeStart** and **RangeEnd** to specific start/end dates if you do not want the dates to move (e.g., fiscal year reporting).
- Do not set any date parameters to report on all data in storage.
<blockquote class="warning" markdown="1">
_[Enable incremental refresh](https://learn.microsoft.com/power-bi/connect-data/incremental-refresh-configure#define-policy) to load more than $5M of raw cost details. Power BI reports can only support $2-5M of data when incremental refresh is not enabled. After incremental refresh is enabled, they can support $2-5M/month for a total of ~$65M in raw cost details._
_<a href="https://learn.microsoft.com/power-bi/connect-data/incremental-refresh-configure#define-policy">Enable incremental refresh</a> to load more than $5M of raw cost details. Power BI reports can only support $2-5M of data when incremental refresh is not enabled. After incremental refresh is enabled, they can support $2-5M/month for a total of ~$65M in raw cost details._
</blockquote>
7. Select the **Close & Apply** to save your settings.
7. Select **Close & Apply** to save your settings.

If you run into any issues syncing your data, see [Troubleshooting Power BI reports](../../_resources/troubleshooting.md).

<br>

## 🔑 Use a SAS token to connect data to a report

Shared Access Signature (SAS) tokens allow you to connect to a storage account without end user credentials or setting up a service principal. To connect Power BI reports to your data via SAS tokens:

1. Generate the SAS token with required permissions:
- Navigate the FinOps hub storage account in the Azure portal.
- Select **Security + Networking** > **Shared access signature** in the menu on the left.
- Under **Allowed resource types**, select `Container` and `Object`.
- Under **Allowed permissions**, select **Read, List**.
- Provide the start and expiration date range as desired.
- Keep the remaining default values or update as desired.
- Select the **Generate SAS token and URL** button.
- Copy the generated token.

![Screenshot of the SAS token configuration in the Azure portal](../../assets/images/hubs/azure-storage-account-SAS.png)

2. Configure SAS token access in Power BI:
- Open the report in Power BI Desktop.
- Select **Transform data** > **Data Source Settings** in the ribbon.
- Select **Edit permissions** at the bottom of the dialog.
- Select **Edit** below the credentials.

![Screenshot of the data source settings within Transform data](../../assets/images/hubs/powerbi-dashboard-SAS-setup.png)

- Select the **Shared access signature** tab.
- Paste the copied SAS token from the Azure portal.
- Select **Save**.
- Select **Close**.
- Select **Apply and Close** in the ribbon.
![Screenshot of the SAS token dialog](../../assets/images/hubs/powerbi-dashboard-SAS-token.png)

## 📋 Copy queries from a toolkit report

FinOps toolkit reports manipulate the raw data to facilitate specific types of reports. If you need to connect your data to a new or existing Power BI report that doesn't currently use FinOps toolkit or Cost Management data source, the best option is to copy queries, columns, and measures from a FinOps toolkit report.
Expand Down
15 changes: 15 additions & 0 deletions docs/_resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,21 @@ Legend:

<br>

## 🚚 v0.6

<sup>To be released October 1, 2024</sup>

📗 FinOps guide
{: .fs-5 .fw-500 .mt-4 mb-0 }

> ➕ Added:
>
> 1. Documented [how to use storage account SAS tokens to setup the reports](../docs/_reporting/power-bi/setup.md).
> 2. Documented how to [preview reports with sample data using Power BI Desktop](../docs/_reporting/hubs/README.md).
>
<br>

## 🪛 v0.5 Update 1

<sup>Released September 7, 2024</sup>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 902be1d

Please sign in to comment.