FabricTools v0.33.0 Public Preview

Get-FabricNotebook

Retrieves an Notebook or a list of Notebooks from a specified workspace in Microsoft Fabric.

Syntax

Get-FabricNotebook [-WorkspaceId] <guid> [[-NotebookId] <guid>] [[-NotebookName] <string>]
 [<CommonParameters>]

Description

The Get-FabricNotebook function sends a GET request to the Fabric API to retrieve Notebook details for a given workspace. It can filter the results by NotebookName.

Examples

Example 1

Retrieves the "Development" Notebook from workspace "12345".

Get-FabricNotebook -WorkspaceId "12345" -NotebookName "Development"

Example 2

Retrieves all Notebooks in workspace "12345".

Get-FabricNotebook -WorkspaceId "12345"

Parameters

NameTypeReq.Pos.PipelineDescription
-WorkspaceId guid ✓Required 0 –

(Mandatory) The ID of the workspace to query Notebooks.

-NotebookId guid 1 –

(Optional) The ID of a specific Notebook to retrieve.

-NotebookName string 2 –

(Optional) The name of the specific Notebook 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