FabricTools v0.33.0 Public Preview

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

NameTypeReq.Pos.PipelineDescription
-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 $FabricConfig global configuration, including BaseUrl and FabricHeaders.
  • Calls Confirm-TokenState to ensure token validity before making the API request.

Author: Tiago Balabuch, Kamil Nowinski