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
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -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-TokenStateto 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