Get-FabricSparkJobDefinitionDefinition
Retrieves the definition of an SparkJobDefinition from a specified Microsoft Fabric workspace.
Syntax
Get-FabricSparkJobDefinitionDefinition [-WorkspaceId] <guid> [[-SparkJobDefinitionId] <guid>]
[[-SparkJobDefinitionFormat] <string>] [<CommonParameters>]Description
This function retrieves the definition of an SparkJobDefinition from a specified workspace using the provided SparkJobDefinitionId. It handles token validation, constructs the API URL, makes the API request, and processes the response.
Examples
Example 1
This example retrieves the definition of the SparkJobDefinition with ID "SparkJobDefinition-67890" in the workspace with ID "workspace-12345".
Get-FabricSparkJobDefinitionDefinition -WorkspaceId "workspace-12345" -SparkJobDefinitionId "SparkJobDefinition-67890"Example 2
This example retrieves the definition of the SparkJobDefinition with ID "SparkJobDefinition-67890" in the workspace with ID "workspace-12345" in JSON format.
Get-FabricSparkJobDefinitionDefinition -WorkspaceId "workspace-12345" -SparkJobDefinitionId "SparkJobDefinition-67890" -SparkJobDefinitionFormat "json"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace where the SparkJobDefinition exists. This parameter is mandatory. |
| -SparkJobDefinitionFormat | string | 2 | – | The format in which to retrieve the SparkJobDefinition definition. This parameter is optional. Default: SparkJobDefinitionV1 |
|
| -SparkJobDefinitionId | guid | 1 | – | The unique identifier of the SparkJobDefinition to retrieve the definition for. This parameter is optional. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
Author: Tiago Balabuch, Kamil Nowinski