Invalid Login Attempt

Lab: Build a URL Shortener with Azure Functions

Overview
In this lab, you will create a simple URL Shortener application written in C# using Azure Functions serverless compute and the Azure Functions Tools for Visual Studio 2017. The application will make use of Azure Functions Proxies, and host the homepage of the application as a static web page in Azure Storage. The app also uses Azure Storage Tables for the backend data store for the URLs and their shortened address codes. 

Details
  • Estimated time required to complete: 1 hours, 22 minutes
  • You will have access to this environment for 3 hours, 0 minutes
  • Learning Credits Required: 5
Who this lab is designed for
  • Developers

Learning Objectives

  • Working with Azure Functions
  • Working with Azure Functions Proxies
  • Using Azure Functions Tools for Visual Studio

Pre-Requisites

  • Understanding of Cloud Computing
  • Understanding of Azure Functions and Serverless Compute

Exercises

Exercise 1: Writing an Azure Function with Proxies (C#)
In this lab, you will create a simple URL Shortener application written in C# using Azure Functions serverless compute and the Azure Functions Tools for Visual Studio 2017. The application will make use of Azure Functions Proxies, and host the homepage of the application as a static web page in Azure Storage. The app also uses Azure Storage Tables for the backend data store for the URLs and their shortened address codes.
Exercise 2: Create Azure Function App and Storage Account in Azure
In this exercise, you will provision a new Azure Function App and Azure Storage Account using the Azure Portal.
Exercise 3: Host Static HTML with Azure Storage and Azure Function Proxies
In this exercise, you will deploy a static HTML page for the URL Shortener application to Azure Storage and configure a Function Proxy within the Azure Functions App to serve it up was the homepage of the web application.
Exercise 4: Write Azure Functions Backend APIs using Visual Studio
In this exercise, you will write the backend REST API methods used to power the URL Shortener application. This backend API will consist of 2 API methods, the first one for creating new shortened URLs, and the second for performing the HTTP Redirects to the Full URLs when passed in the Shortened URL Code generated by the first API method. You will also setup Azure Function Proxies for both REST API methods to make them more intuitive to call and the application function like a normal URL Shortender where the URL for shortened URLs to redirect is formatted like "_http://domain.com/code_" similar to other URL Shortener services.
Exercise 5: Deploy Function App Project into Azure
In this exercise, you will use the Visual Studio tooling to Publish the Azure Functions code out to the Azure Function App that has been provisioned in Azure.
Exercise 6: Test Application
In this exercise, you will test out the new URL Shortener application that was built out with Azure Functions throughout this hands-on lab.

Login to Start Lab


Not Registered? Already Registered?
Benefits
Real Time Labs allow you to learn technology in an isolated environment without the hassle or cost of setting up a dedicated learning environment.

How it works