Update-FabricSparkJobDefinitionDefinition
Updates the definition of an existing SparkJobDefinition in a specified Microsoft Fabric workspace.
Syntax
Update-FabricSparkJobDefinitionDefinition [-WorkspaceId] <guid> [-SparkJobDefinitionId] <guid>
[-SparkJobDefinitionPathDefinition] <string> [[-SparkJobDefinitionPathPlatformDefinition] <string>]
[-WhatIf] [-Confirm] [<CommonParameters>]Description
This function sends a PATCH request to the Microsoft Fabric API to update the definition of an existing SparkJobDefinition in the specified workspace. It supports optional parameters for SparkJobDefinition definition and platform-specific definition.
Examples
Example 1
This example updates the definition of the SparkJobDefinition with ID "SparkJobDefinition-67890" in the workspace with ID "workspace-12345" using the provided definition file.
Update-FabricSparkJobDefinitionDefinition -WorkspaceId "workspace-12345" -SparkJobDefinitionId "SparkJobDefinition-67890" -SparkJobDefinitionPathDefinition "C:\Path\To\SparkJobDefinitionDefinition.json"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -SparkJobDefinitionId | guid | ✓Required | 1 | – | The unique identifier of the SparkJobDefinition to be updated. This parameter is mandatory. |
| -SparkJobDefinitionPathDefinition | string | ✓Required | 2 | – | An optional path to the SparkJobDefinition definition file to upload. |
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace where the SparkJobDefinition exists. This parameter is mandatory. |
| -Confirmalias: cf | switch | Named | – | Prompts you for confirmation before running the cmdlet. |
|
| -SparkJobDefinitionPathPlatformDefinition | string | 3 | – | An optional path to the platform-specific definition file to upload. |
|
| -WhatIfalias: wi | switch | Named | – | Runs the command in a mode that only reports what would happen without performing the actions. |
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