We listened to your feedback, and last week Azure Data Factory released a powerful enhancement enabling integration with Azure Machine Learning. You now have the ability to run your finished Azure Machine Learning models from within your data factory pipelines – so you can repeatedly feed your trained scoring models with data from multiple sources. The seamless integration enables batch prediction scenarios such as identifying possible loan defaults, determining sentiment, and analyzing customer behavior patterns. Get started quickly by creating an AzureMLLinkedService and AzureMLBatchScoringActivity to invoke your batch Azure Machine Learning models in a data pipeline.
This is the batch scoring URL (mlEndpoint) to the Machine Learning model published in an Azure ML workspace. Along with the endpoint, you will need the API Key to access any of your Machine Learning models and can easily retrieve this from your published Machine Learning model (see Figure 1 below). Example:
"hubName" : "Hub-AzureML",
"mlEndpoint":"https://[batch scoring endpoint]/jobs",
} Figure 1.
To find the API Key and batch scoring URL of the published model, the batch scoring URL for the AzureMLLinkedService can be obtained by clicking ‘API help page’ in the image above, which is the following in this example: Example Batch Scoring URL: https://ussouthcentral.services.azureml.net/workspaces/da9e895b758e44b2812a6218d507e216/services/8c91ff3461a416f8f8e0d96a1162681/jobs/
This new Machine Learning Activity type in Azure Data Factory allows you to easily operationalize your finished Machine Learning models without writing any Custom Code. It will get the location of the input file from your input tables and call the AzureML Batch Scoring API. Following successful execution of the Scoring API, it will copy the batch scoring output to the Azure Blob given in your output table. Unlike other Data Factory Activities, an AzureMLBatchScoringActivity can have only one input and one output Table. Example:
"description":"use AzureML model",
"description":"prediction analysis on batch input",
Using the simple steps described above, customers publishing Azure Machine Learning models can now easily and quickly operationalize them within their data flow pipelines using Azure Data Factory. To find more details about creating predictive pipelines using Azure Data Factory and Azure Machine Learning, please click here
. You can also visit the Azure Data Factory GitHub repository and try out our E2E Twitter Analysis Sample
using the newly released integration.