Get-FabricKQLQuerysetDefinition
Retrieves the definition of a KQLQueryset from a specific workspace in Microsoft Fabric.
Syntax
Get-FabricKQLQuerysetDefinition [-WorkspaceId] <guid> [[-KQLQuerysetId] <guid>]
[[-KQLQuerysetFormat] <string>] [<CommonParameters>]Description
This function fetches the KQLQueryset's content or metadata from a workspace. Handles both synchronous and asynchronous operations, with detailed logging and error handling.
Examples
Example 1
Retrieves the definition of the KQLQueryset with ID 67890 from the workspace with ID 12345 in the ipynb format.
Get-FabricKQLQuerysetDefinition -WorkspaceId "12345" -KQLQuerysetId "67890"Example 2
Retrieves the definitions of all KQLQuerysets in the workspace with ID 12345 in the ipynb format.
Get-FabricKQLQuerysetDefinition -WorkspaceId "12345"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceId | guid | ✓Required | 0 | – | (Mandatory) The unique identifier of the workspace from which the KQLQueryset definition is to be retrieved. |
| -KQLQuerysetFormat | string | 2 | – | Specifies the format of the KQLQueryset definition. |
|
| -KQLQuerysetId | guid | 1 | – | (Optional)The unique identifier of the KQLQueryset whose definition needs to be retrieved. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
- Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski