
Microsoft Fabric RunSparkJob
CertifiedRun a Microsoft Fabric Spark Job Definition
Microsoft Fabric RunSparkJob
Run a Microsoft Fabric Spark Job Definition
Submits a Fabric Spark Job Definition using the item job scheduler API and optionally waits for completion. Defaults: wait=true, pollFrequency=PT5S, timeout=PT1H.
type: io.kestra.plugin.microsoft.fabric.data.engineering.RunSparkJobExamples
id: fabric_run_spark_job
namespace: company.team
tasks:
- id: run_spark_job
type: io.kestra.plugin.microsoft.fabric.data.engineering.RunSparkJob
tenantId: "{{ secret('FABRIC_TENANT_ID') }}"
clientId: "{{ secret('FABRIC_CLIENT_ID') }}"
clientSecret: "{{ secret('FABRIC_CLIENT_SECRET') }}"
workspaceId: "your-workspace-id"
sparkJobDefinitionId: "your-spark-job-definition-id"
Properties
sparkJobDefinitionId *Requiredstring
Spark Job Definition ID
Microsoft Fabric Spark Job Definition item GUID within the workspace
workspaceId *Requiredstring
Workspace ID
Microsoft Fabric workspace GUID
clientId string
Client ID
Service principal client (application) ID
clientSecret string
Client Secret
Service principal client secret. When both clientId and clientSecret are provided, service principal authentication is used; otherwise DefaultAzureCredential is used.
parameters object
{}Execution parameters
Key/value parameters passed to the job execution
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
pollFrequency string
PT5SPoll frequency
Interval between status checks when wait=true
tenantId string
Tenant ID
Azure Active Directory tenant ID for authentication
timeout string
PT1HTimeout
Maximum time to wait for completion; throws TimeoutException when exceeded
wait booleanstring
trueWait for completion
Poll until the job reaches a terminal state; returns jobInstanceId immediately when false
Outputs
jobInstanceId string
Job instance ID
Unique ID of the Spark job instance
status string
Final status
Terminal status of the Spark job