Skip to content

[FEATURE] return job_instance_id for cli job start/run command #203

@prasunbasak

Description

@prasunbasak

Use Case / Problem

fab cli job run/start command does not return the newly created jobId as a distinct token. instead it is embedded in the output 'message' . This requires extra scripts/regex etc to extract the jobId for further use, e.g. to find the job status of a long running job.
It would help to output jobId as an attribute in json output. (example below)

{
"timestamp": "2026-03-26T09:44:31.765080Z",
"id": "0a4e989f-7b7d-41d9-8fe5-b3ead1e35555",
"status": "Success",
"command": "job",
"result": {
"message": "Job instance '0a4e989f-7b7d-41d9-8fe5-b3ead1e35555' created"
}
}

Proposed Solution

fab cli job run/start command json output to return jobId as a distinct attribute. (example above in usecase description)

Alternatives Considered

regex script to extract jobId from output

Impact Assessment

  • This would help me personally
  • This would help my team/organization
  • This would help the broader fabric-cli community
  • This aligns with Microsoft Fabric roadmap items

Implementation Attestation

  • I understand this feature should maintain backward compatibility with existing commands
  • I confirm this feature request does not introduce performance regressions for existing workflows
  • I acknowledge that new features must follow fabric-cli's established patterns and conventions

Implementation Notes

src/fabric_cli/commands/jobs/fab_jobs_run.py gets the job_instance_id from rest call. can this be returned to the 'fab job start/run' call

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions