FabricTools v0.33.0 Public Preview

Add-FabricDomainWorkspaceAssignmentByCapacity

Assigns workspaces to a Fabric domain based on specified capacities.

Syntax

Add-FabricDomainWorkspaceAssignmentByCapacity [-DomainId] <guid> [-CapacitiesIds] <guid[]>
 [<CommonParameters>]

Description

The Add-FabricDomainWorkspaceAssignmentByCapacity function assigns workspaces to a Fabric domain using a list of capacity IDs by making a POST request to the relevant API endpoint.

Aliases: Assign-FabricDomainWorkspaceByCapacity

Examples

Example 1

Assigns workspaces to the domain with ID "12345" based on the specified capacities.

Add-FabricDomainWorkspaceAssignmentByCapacity -DomainId "12345" -CapacitiesIds @("capacity1", "capacity2")

Parameters

NameTypeReq.Pos.PipelineDescription
-CapacitiesIds guid[] ✓Required 1 –

An array of capacity IDs used to assign workspaces to the domain.

-DomainId guid ✓Required 0 –

The unique identifier of the Fabric domain to which the workspaces will 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