Get-FabricLakehouse
Retrieves an Lakehouse or a list of Lakehouses from a specified workspace in Microsoft Fabric.
Syntax
Get-FabricLakehouse [-WorkspaceId] <guid> [[-LakehouseId] <guid>] [[-LakehouseName] <string>]
[<CommonParameters>]Description
The Get-FabricLakehouse function sends a GET request to the Fabric API to retrieve Lakehouse details for a given workspace. It can filter the results by LakehouseName.
Examples
Example 1
Retrieves the "Development" Lakehouse from workspace "12345".
Get-FabricLakehouse -WorkspaceId "12345" -LakehouseName "Development"Example 2
Retrieves all Lakehouses in workspace "12345".
Get-FabricLakehouse -WorkspaceId "12345"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceId | guid | ✓Required | 0 | – | (Mandatory) The ID of the workspace to query Lakehouses. |
| -LakehouseId | guid | 1 | – | (Optional) The ID of a specific Lakehouse to retrieve. |
|
| -LakehouseName | string | 2 | – | (Optional) The name of the specific Lakehouse to retrieve. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
- Requires
$FabricConfigglobal configuration, includingBaseUrlandFabricHeaders. - Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski