FabricTools v0.33.0 Public Preview

Add-FabricDomainWorkspaceAssignmentById

Assigns workspaces to a specified domain in Microsoft Fabric by their IDs.

Syntax

Add-FabricDomainWorkspaceAssignmentById [-DomainId] <guid> [-WorkspaceIds] <guid[]>
 [<CommonParameters>]

Description

The Add-FabricDomainWorkspaceAssignmentById function sends a request to assign multiple workspaces to a specified domain using the provided domain ID and an array of workspace IDs.

Aliases: Assign-FabricDomainWorkspaceById

Examples

Example 1

Assigns the workspaces with IDs "ws1", "ws2", and "ws3" to the domain with ID "12345".

Add-FabricDomainWorkspaceAssignmentById -DomainId "12345" -WorkspaceIds @("ws1", "ws2", "ws3")

Parameters

NameTypeReq.Pos.PipelineDescription
-DomainId guid ✓Required 0 –

The ID of the domain to which workspaces will be assigned. This parameter is mandatory.

-WorkspaceIds guid[] ✓Required 1 –

An array of workspace IDs to be assigned to the domain. This parameter is mandatory.

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