| document type | cmdlet |
|---|---|
| external help file | FabricTools-Help.xml |
| HelpUri | |
| Locale | en-US |
| Module Name | FabricTools |
| ms.date | 04/01/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | Add-FabricDomainWorkspaceAssignmentById |
Assigns workspaces to a specified domain in Microsoft Fabric by their IDs.
Add-FabricDomainWorkspaceAssignmentById [-DomainId] <guid> [-WorkspaceIds] <guid[]>
[<CommonParameters>]
Assign-FabricDomainWorkspaceById
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.
Assigns the workspaces with IDs "ws1", "ws2", and "ws3" to the domain with ID "12345".
Add-FabricDomainWorkspaceAssignmentById -DomainId "12345" -WorkspaceIds @("ws1", "ws2", "ws3")The ID of the domain to which workspaces will be assigned. This parameter is mandatory.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''An array of workspace IDs to be assigned to the domain. This parameter is mandatory.
Type: System.Guid[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Requires
$FabricConfigglobal configuration, includingBaseUrlandFabricHeaders. - Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch
{{ Fill in the related links here }}