| 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 | Get-FabricCopyJobDefinition |
Retrieves the definition of a Copy Job from a specific workspace in Microsoft Fabric.
Get-FabricCopyJobDefinition [-WorkspaceId] <guid> [-CopyJobId] <guid> [[-CopyJobFormat] <string>]
[<CommonParameters>]
This function fetches the Copy Job's content or metadata from a workspace. It supports both synchronous and asynchronous operations, with detailed logging and error handling.
Retrieves the definition of the Copy Job with ID 67890 from the workspace with ID 12345.
Get-FabricCopyJobDefinition -WorkspaceId "12345" -CopyJobId "67890"(Optional) Specifies the format of the Copy Job definition. For example, 'json' or 'xml'.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''(Mandatory) The unique identifier of the Copy Job whose definition needs to be retrieved.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''(Mandatory) The unique identifier of the workspace from which the Copy Job definition is to be retrieved.
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
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. - Handles long-running operations asynchronously.
- Logs detailed information for debugging purposes.
Author: Tiago Balabuch
{{ Fill in the related links here }}