How to get a child job name from pipeline job using REST

Yun, Jonghyun 20 Reputation points
2024-05-27T16:02:08.4266667+00:00

I need to expose some logs of a child job to provide progress of job and error message to end-users. The pipeline is deployed in a batch-endpoint and invoked thru REST. Getting a child job name was doable thru Azure CLI as follows.

JOB_NAME=$(az ml batch-endpoint invoke -n $ENDPOINT_NAME --f inputs.yml --query name -o tsv)
az ml job list --parent-job-name $JOB_NAME --query "[].name" -o tsv

I need do this using REST. I know the JOB_NAME when I'm using REST, but I have no idea about how to query the child job. Could you please help?

Jonghyun

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,646 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Cameron 612 Reputation points
    2024-05-27T21:03:30.9766667+00:00

    I don't know the specifics for your situation but if you can do this task with az commands then why not try doing that with the --debug option? That should show all API calls.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.