| 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-FabricWorkspaceCapacity |
Assigns a Fabric workspace to a specified capacity.
Add-FabricWorkspaceCapacity [-WorkspaceId] <guid> [-CapacityId] <guid> [<CommonParameters>]
Assign-FabricWorkspaceCapacity
The Add-FabricWorkspaceCapacity function sends a POST request to assign a workspace to a specific capacity.
Assigns the workspace with ID "workspace123" to the capacity "capacity456".
Add-FabricWorkspaceCapacity -WorkspaceId "workspace123" -CapacityId "capacity456"The unique identifier of the capacity to which the workspace should be assigned.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The unique identifier of the workspace to be assigned.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: (All)
Position: 0
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 }}