Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 4.76 KB

Challenge-03.md

File metadata and controls

66 lines (52 loc) · 4.76 KB

Challenge 03 - Create Resources

< Previous Challenge - Home - Next Challenge >

Introduction

You must provision a few resources in Azure before you start developing the solution. Ensure all resources use the same resource group for easier cleanup. Put resources in the same region as the resource group. Remember that some resources need to have unique names.

Description

In this challenge, you will provision a blob storage account using the Hot tier, and create two containers within to store uploaded photos and exported CSV files. You will then provision two Function Apps instances, one you will deploy from Visual Studio, and the other you will manage using the Azure portal. Next, you will create a new Event Grid topic. After that, you will create an Azure Cosmos DB account with two collections. Then, you will provision a new Cognitive Services Computer Vision API service for applying object character recognition (OCR) on the license plates. Lastly, you will implement Key Vault for secure some of the resource keys.

HINT: Record names and keys

  1. Create a resource group

  2. Create an Azure Cosmos DB account If this takes a while, move ahead and come back to finish the containers

    • API : Core (SQL)
    • Disable Geo-redundency and multi-region writes
    • Create a container
      • Database ID "LicensePlates"
      • Uncheck Provision database throughput
      • Container ID "Processed"
      • Partition key : "/licensePlateText"
    • Create a second container
      • Database ID created above "LicensePlates"
      • Container ID "NeedsManualReview"
      • Partition key : "/fileName"
  3. Create a storage account (refer to this one as INIT)

    • Create a container "images"
    • Create a container "export"
  4. Create a function app (put "App" in the name)

    • For your tollbooth app, consumption plan, .NET runtime stack
    • Create new storage and disable application insights
  5. Create a function app (put "Events" in the name)

    • For your tollbooth events, consumption plan, Node.js runtime stack
    • Create new storage and disable application insights
  6. Create an Event Grid Topic (leave schema as Event Grid Schema)

  7. Create a Computer Vision API service (S1 pricing tier)

  8. Create a Key Vault

    • Pricing Tier : Standard
    • Create Secrets According to below
  9. Configure your Tollbooth app to use KeyVault for secrets

    Name Value
    computerVisionApiKey Computer Vision API key
    eventGridTopicKey Event Grid Topic access key
    cosmosDBAuthorizationKey Cosmos DB Primary Key
    blobStorageConnection Blob storage connection string

Success Criteria

  1. You have 11 resources in your resource group in the same region (Includes the 2 storage accounts associated to your function apps)

Learning Resources