Skip to content

Commit c996a19

Browse files
committed
adds arg power bi connector quickstart
1 parent 4e77374 commit c996a19

File tree

6 files changed

+91
-1
lines changed

6 files changed

+91
-1
lines changed
76.9 KB
Loading
20.8 KB
Loading
17.7 KB
Loading

articles/governance/resource-graph/overview.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Overview of Azure Resource Graph
33
description: Understand how the Azure Resource Graph service enables complex querying of resources at scale across subscriptions and tenants.
4-
ms.date: 01/20/2024
4+
ms.date: 01/29/2024
55
ms.topic: overview
66
ms.custom: devx-track-arm-template
77
---
@@ -145,6 +145,13 @@ Resource Graph also supports Azure CLI, Azure PowerShell, and REST API. The quer
145145
146146
You can create alert rules by using either Azure Resources Graph queries or integrating Log Analytics with Azure Resources Graph queries through Azure Monitor. Both methods can be used to create alerts for Azure resources. For examples, go to [Quickstart: Create alerts with Azure Resource Graph and Log Analytics](./alerts-query-quickstart.md).
147147

148+
## Run queries with Power BI connector
149+
150+
> [!NOTE]
151+
> The Azure Resource Graph Power BI connector is in public preview.
152+
153+
The Azure Resource Graph Power BI connector runs queries at the tenant level but you can change the scope to subscription or management group. The Power BI connector has an optional setting to return all records if your query results have more than 1,000 records. For more information, go to [Quickstart: Run queries with the Azure Resource Graph Power BI connector](./power-bi-connector-quickstart.md).
154+
148155
## Next steps
149156

150157
- Learn more about the [query language](./concepts/query-language.md).
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
title: Run queries with the Azure Resource Graph Power BI connector
3+
description: In this quickstart, you learn how to run queries with the Azure Resource Graph Power BI connector.
4+
ms.date: 01/29/2024
5+
ms.topic: quickstart
6+
---
7+
8+
# Quickstart: Run queries with the Azure Resource Graph Power BI connector
9+
10+
In this quickstart, you learn how to run queries with the Azure Resource Graph Power BI connector. By default the Power BI connector runs queries at the tenant level but you can change the scope to subscription or management group. Resource Graph by default returns a maximum of 1,000 records but the Power BI connector has an optional setting to return all records if your query results have more than 1,000 records.
11+
12+
> [!NOTE]
13+
> The Azure Resource Graph Power BI connector is in public preview.
14+
15+
> [!TIP]
16+
> If you participated in the private preview, delete your _AzureResourceGraph.mez_ preview file. If the file isn't deleted, your custom connector might be used by Power Query instead of the certified connector.
17+
18+
## Prerequisites
19+
20+
- If you don't have an Azure account with an active subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
21+
- [Power BI Desktop](https://powerbi.microsoft.com/desktop/).
22+
- Azure role-based access control rights with at least _Reader_ role assignment to resources. Learn more about [how to assign roles](../../role-based-access-control/role-assignments-portal.md).
23+
24+
## Connect Resource Graph with Power BI connector
25+
26+
After Power BI Desktop is installed, you can connect Resource Graph with Power BI connector so that you can run a query. If you don't have a query to run, you can use the following sample that queries for storage accounts.
27+
28+
```kusto
29+
resources
30+
| where type == 'microsoft.storage/storageaccounts'
31+
```
32+
33+
The following example runs a query with the default settings.
34+
35+
1. Open the Power BI Desktop app on your computer and close any dialog boxes that are displayed.
36+
1. Go to **Home** > **Get data** > **More** > **Azure** > **Azure Resource Graph** and select **Connect**.
37+
38+
:::image type="content" source="./media/power-bi-connector-quickstart/power-bi-get-data.png" alt-text="Screenshot of the get data dialog box in Power BI Desktop to select the Azure Resource Graph connector.":::
39+
40+
1. On the **Azure Resource Graph** dialog box, enter your query into the **Query** box.
41+
42+
:::image type="content" source="./media/power-bi-connector-quickstart/query-dialog-box.png" alt-text="Screenshot of the Azure Resource Graph dialog box to enter a query and use the default settings.":::
43+
44+
1. Select **OK** to run the query and if prompted, enter your credentials.
45+
1. Select **Connect** to run the query. The results are displayed in Power BI Desktop.
46+
1. Select **Load** or **Transform Data**.
47+
48+
- **Load** imports the query results into Power BI Desktop.
49+
- **Transform Data** opens the Power Query Editor with your query results.
50+
51+
## Use optional settings
52+
53+
You can select optional values to change the Azure subscription or management group that the query runs against or to get query results of more than 1,000 records.
54+
55+
| Option | Description |
56+
| ---- | ---- |
57+
| Scope | You can select subscription or management group. Tenant is the default scope when no selection is made. |
58+
| Subscription ID | Required if you select subscription scope. Specify the Azure subscription ID. Use a comma-separated list to query multiple subscriptions. |
59+
| Management group ID | Required if you select management group scope. Specify the Azure management group ID. Use a comma-separated list to query multiple management groups. |
60+
| Advanced options | To get more than 1,000 records change `$resultTruncated` to `FALSE`. By default Resource Graph returns a maximum of 1,000 records. |
61+
62+
For example, to run a query for a subscription that returns more than 1,000 records:
63+
64+
- Set the scope to subscription.
65+
- Enter a subscription ID.
66+
- Set `$resultTruncated` to `FALSE`.
67+
68+
:::image type="content" source="./media/power-bi-connector-quickstart/query-dialog-box-options.png" alt-text="Screenshot of the Azure Resource Graph dialog box to enter a query and use optional settings for scope, subscription ID, and $resultTruncated.":::
69+
70+
## Clean up resources
71+
72+
When you're finished, close any Power BI Desktop or Power Query windows and save or discard your queries.
73+
74+
## Related content
75+
76+
For more information about the query language or how to explore resources, go to the following articles.
77+
78+
- [Understanding the Azure Resource Graph query language](./concepts/query-language.md).
79+
- [Explore your Azure resources with Resource Graph](./concepts/explore-resources.md).
80+
- Sample queries listed by [table](./samples/samples-by-table.md) or [category](./samples/samples-by-category.md).

articles/governance/resource-graph/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
- name: Create alert on ARG query
3939
displayName: alerts, portal, resource graph, monitor, log analytics, query
4040
href: ./alerts-query-quickstart.md
41+
- name: Run ARG query with Power BI connector
42+
displayName: portal, resource graph, query, power bi
43+
href: ./power-bi-connector-quickstart.md
4144
- name: Tutorials
4245
items:
4346
- name: Create and share a query in Azure portal

0 commit comments

Comments
 (0)