Skip to the content.

Cognitive Services Lab

This is a hands on lab guide for Azure. In this lab you will deploy a serverless application which uses Azure Cognitive Services to analyze photos gathered from twitter. An Azure Logic App drives the process and carries out most of the tasks.

The Logic App flow is:

The Azure cognitive service uses a pre-trained computer vision model to return results describing the image as a JSON object. Cosmos DB is a No-SQL database, which the Logic App uses to store the results as JSON documents, one for each photo result.

The final part of the application is a simple web app, written in Node.js. This web app is hosted in Azure as an Web App Service, it connects to Cosmos DB and displays the photo analysis results as a simple web page.

The guide steps through deploying and configuring the complete end to end solution in Azure

Solution Architecture


High Level Steps

  1. Create a new resource group
  2. Create a Computer Vision API account
  3. Create a new Cosmos DB account
  4. Create a database and collection in Cosmos DB
  5. Create a Logic App
  6. Connect Logic App to Twitter
  7. Connect Logic App to Cosmos DB
  8. Test and verify
  9. Create a new Web App
  10. Connect Web App to Cosmos DB
  11. View results :)

Main Step by Step Guide

The guide consists of step by step instructional videos, taking you through setting up the whole application solution end to end. It will take approx an hour to run through the lab

Below is an embedded YouTube playlist with all 8 videos. This is a direct link to the playlist