Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Azure Synapse Inventory via Azure Resource Graph

The following Azure Resource Graph queries assist with gathering Azure tenant inventory for Azure resources related to Azure Synapse Analytics. They are intended to aid cost optimization, general inventory needs, normalizing or standardization of configuration, and more.

Pre-Requisites

  1. RBAC 'Reader' or equivalent access to Azure Synapse related resources. See Azure Resource Graph permissions documentation for specifics.
  2. Access to the Azure Portal or an Azure PowerShell or CLI session.

To use these queries:

  1. Navigate to the Azure Portal. Search or select the Azure Resource Graph Explorer and paste the text of the desired query into the query window. Select run query.
  2. Alternatively you may programmatically execute these queries programmatically via CLI or SDKs.

Sample queries for gathering inventory:

Dedicated SQL Pools

Inventory-DedicatedSqlPool - Lists dedicated SQL pools (formerly SQL DW) visible to the executing Azure context returning the subscription, resource group, parent Azure SQL Server, current SKU, standalone or association with Azure Synapse Workspace, and more.

Serverless SQL Pools

To be completed.

Spark Pools

Inventory-SparkPools - Lists Spark pools (Synapse Spark) visible to the executing Azure context returning the subscription, resource group, parent Azure Synapse Analytics workspace, SKU, and more.

Kusto Pools

To be completed.

Troubleshooting

Runtime errors with Azure Resource Graph

Checklist to review if errors are returned or no data is returned from these queries. If not data is returned the root cause is RBAC access to the Azure Synapse related Azure resources.