azurerestazure-machine-learning-service

How to get status of Azure machine learning service pipeline run using Rest Api?


I have created an Azure Machine Learning Service Pipeline which i am invoking externally using its rest endpoint. But i also need to monitor its run , whether it got completed or failed, periodically. Is there a methodinside a machine learning pipeline's rest endpoint, which i can hit to check its run status? I have tried the steps mentioned in the link here https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/machine-learning-pipelines/pipeline-batch-scoring/pipeline-batch-scoring.ipynb


Solution

  • For getting status of run, you can use REST APIs described here https://github.com/Azure/azure-rest-api-specs/tree/master/specification/machinelearningservices/data-plane

    Specifically you need https://github.com/Azure/azure-rest-api-specs/blob/master/specification/machinelearningservices/data-plane/Microsoft.MachineLearningServices/preview/2019-08-01/runHistory.json

    use this call to get run information including status:

    /history/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/experiments/{experimentName}/runs/{runId}/details