FabricTools v0.33.0 Public Preview

Update-FabricWorkspace

Updates the properties of a Fabric workspace.

Syntax

Update-FabricWorkspace [-WorkspaceId] <guid> [-WorkspaceName] <string>
 [[-WorkspaceDescription] <string>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

The Update-FabricWorkspace function updates the name and/or description of a specified Fabric workspace by making a PATCH request to the API.

Examples

Example 1

Updates the name of the workspace with the ID "workspace123" to "NewWorkspaceName".

Update-FabricWorkspace -WorkspaceId "workspace123" -WorkspaceName "NewWorkspaceName"

Example 2

Updates both the name and description of the workspace "workspace123".

Update-FabricWorkspace -WorkspaceId "workspace123" -WorkspaceName "NewName" -WorkspaceDescription "Updated description"

Parameters

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

The unique identifier of the workspace to be updated.

-WorkspaceName string ✓Required 1 –

The new name for the workspace.

-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-WhatIfalias: wi switch Named –

Runs the command in a mode that only reports what would happen without performing the actions.

-WorkspaceDescription string 2 –

(Optional) The new description for the workspace.

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.

Author: Tiago Balabuch, Kamil Nowinski