Consuming Azure ML experiment web service using Visual Studio

As I was working on Student Churn Prediction model using Azure Machine Learning Services. My goal was to consume a Web service using a CSV as input file to score results in our C# Application.

To achieve this goal, we need to get return predictions results to the application in real time. To connect to a Machine Learning real-time endpoint, the following NuGet packages must be installed:

  • Microsoft.AspNet.WebApi.Client
  • NewtonsoftJson

Next, we will import a CSV as our input file to score results in real-time.

Now, we need to pass input data variables to our input schema to score results.

Next, we need to call the rest endpoint for the web service and convert my input schema in json form.

In the last step we will be using Power Bi to get some useful insight using our output data.

I hope you found this blog post helpful. If you have any questions, please feel free to contact


Leave a Reply

Your email address will not be published. Required fields are marked *

nine + one =