FabricTools v0.33.0 Public Preview

Add-FabricWorkspaceCapacity

Assigns a Fabric workspace to a specified capacity.

Syntax

Add-FabricWorkspaceCapacity [-WorkspaceId] <guid> [-CapacityId] <guid> [<CommonParameters>]

Description

The Add-FabricWorkspaceCapacity function sends a POST request to assign a workspace to a specific capacity.

Aliases: Assign-FabricWorkspaceCapacity

Examples

Example 1

Assigns the workspace with ID "workspace123" to the capacity "capacity456".

Add-FabricWorkspaceCapacity -WorkspaceId "workspace123" -CapacityId "capacity456"

Parameters

NameTypeReq.Pos.PipelineDescription
-CapacityId guid ✓Required 1 –

The unique identifier of the capacity to which the workspace should be assigned.

-WorkspaceIdalias: Id guid ✓Required 0 –

The unique identifier of the workspace to be assigned.

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