Remove-FabricDomainWorkspaceAssignment
Unassign workspaces from a specified Fabric domain.
Syntax
Remove-FabricDomainWorkspaceAssignment [-DomainId] <guid> [[-WorkspaceIds] <guid[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]Description
The Unassign -FabricDomainWorkspace function allows you to Unassign specific workspaces from a given Fabric domain or unassign all workspaces if no workspace IDs are specified. It makes a POST request to the relevant API endpoint for this operation.
Aliases: Unassign-FabricDomainWorkspace
Examples
Example 1
Unassigns all workspaces from the domain with ID "12345".
Remove-FabricDomainWorkspaceAssignment -DomainId "12345"Example 2
Unassigns the specified workspaces from the domain with ID "12345".
Remove-FabricDomainWorkspaceAssignment -DomainId "12345" -WorkspaceIds @("workspace1", "workspace2")Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -DomainId | guid | ✓Required | 0 | – | The unique identifier of the Fabric domain. |
| -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. |
|
| -WorkspaceIds | guid[] | 1 | – | (Optional) An array of workspace IDs to unassign. If not provided, all workspaces will be unassigned. |
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.
Author: Tiago Balabuch, Kamil Nowinski