run_on_demand_job
Execute on-demand jobs for Microsoft Fabric items like notebooks, pipelines, and data warehouses to process data or run analytics tasks asynchronously.
Instructions
Run an on-demand job for a Fabric item.
Executes a job for the specified item. Common job types include:
RunNotebook: Execute a notebook
Pipeline: Run a data pipeline
DefaultJob: Default job type for the item
The job runs asynchronously. Use get_job_status or get_job_status_by_url to check the job's progress and result.
Parameters: workspace_name: The display name of the workspace. item_name: Name of the item to run job for. item_type: Type of the item (Notebook, Pipeline, Lakehouse, Warehouse, etc.). job_type: Type of job to run (RunNotebook, DefaultJob, Pipeline, etc.). execution_data: Optional execution data payload for the job (e.g., notebook parameters).
Returns: Dictionary with status, message, job_instance_id, location_url, and retry_after.
Example: ```python # Run a notebook result = run_on_demand_job( workspace_name="My Workspace", item_name="analysis_notebook", item_type="Notebook", job_type="RunNotebook", execution_data={"parameters": {"start_date": "2025-01-01"}} )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_name | Yes | ||
| item_name | Yes | ||
| item_type | Yes | ||
| job_type | Yes | ||
| execution_data | No |