FabricTools v0.33.0 Public Preview

Get-FabricWorkspace

Retrieves details of a Microsoft Fabric workspace by its ID or name.

Syntax

Get-FabricWorkspace [[-WorkspaceId] <guid>] [[-WorkspaceName] <string>] [<CommonParameters>]

Description

The Get-FabricWorkspace function fetches workspace details from the Fabric API. It supports filtering by WorkspaceId or WorkspaceName.

Examples

Example 1

Fetches details of the workspace with ID "workspace123".

Get-FabricWorkspace -WorkspaceId "workspace123"

Example 2

Fetches details of the workspace with the name "MyWorkspace".

Get-FabricWorkspace -WorkspaceName "MyWorkspace"

Parameters

NameTypeReq.Pos.PipelineDescription
-WorkspaceIdalias: Id guid 0 –

The unique identifier of the workspace to retrieve.

-WorkspaceName string 1 –

The display name of the workspace to retrieve.

This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.

Notes

  • Calls Confirm-TokenState to ensure token validity before making the API request.
  • Returns the matching workspace details or all workspaces if no filter is provided.

Author: Tiago Balabuch, Kamil Nowinski