
Microsoft Fabric Query
CertifiedQuery a Microsoft Fabric Warehouse
Microsoft Fabric Query
Query a Microsoft Fabric Warehouse
Executes a SQL query against a Microsoft Fabric Warehouse over JDBC using Active Directory service principal authentication. Supports STORE (writes to Kestra internal storage as ION) and FETCH (returns rows as a list).
type: io.kestra.plugin.microsoft.fabric.warehouse.QueryExamples
id: fabric_warehouse_query
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.microsoft.fabric.warehouse.Query
tenantId: "{{ secret('FABRIC_TENANT_ID') }}"
clientId: "{{ secret('FABRIC_CLIENT_ID') }}"
clientSecret: "{{ secret('FABRIC_CLIENT_SECRET') }}"
sqlEndpointId: "your-sql-endpoint-id"
warehouseId: "your-warehouse-id"
sql: "SELECT TOP 100 * FROM dbo.sales"
fetchType: STORE
Properties
sql *Requiredstring
SQL query
SQL statement to execute against the warehouse
sqlEndpointId *Requiredstring
SQL Endpoint ID
Unique identifier of the Fabric Warehouse SQL endpoint, used as the JDBC server hostname (
warehouseId *Requiredstring
Warehouse ID
Microsoft Fabric Warehouse item GUID, used as the JDBC database name
clientId string
Client ID
Service principal client (application) ID
clientSecret string
Client Secret
Service principal client secret. When both clientId and clientSecret are provided, service principal authentication is used; otherwise DefaultAzureCredential is used.
fetchType string
STORESTOREFETCHFETCH_ONENONEFetch type
How to return results: STORE writes an ION file to Kestra storage; FETCH returns rows as a list (not recommended for large result sets)
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
tenantId string
Tenant ID
Azure Active Directory tenant ID for authentication
Outputs
row object
Row
Single result row when fetchType=FETCH_ONE
rows array
Rows
Result rows when fetchType=FETCH
size integer
0Row count
Number of rows returned
uri string
uriStorage URI
Kestra internal storage URI of the ION file when fetchType=STORE
Metrics
rows counter
Number of rows returned by the query