Azure Functions are at the core of Azure’s serverless services and are great at building simple APIs, micro-services, back-end asynchronous jobs, and contributing to integration workflows. In this lab, we will be walking through a simple, but non-trivial example of an Azure function that solves a common healthcare data integration scenario.
In order to make this lab accessible to the broadest audience, all of the work will be done through the Azure portal, and code will be supplied by copy-paste. Previous coding experience in any language and familiarity with HTML are both helpful, but not required.
**Resources:** https://github.com/linuxacademy/content-Intro-to-serverless-on-Azure
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Provision an Azure Function App Using the Azure Portal
The app should be provisioned under the Consumption plan, with a backing storage account.
- Deploy a C# .NET Core Function in the App Based on the HTTP Trigger Template
- The function code should be modified to return a simple greeting using the student’s name.
- The app tests successfully by returning a simple greeting when run.
- Extend the Project by Adding a NuGet Package Configuration
- A function.proj file should be created in the function project.
- The function.proj file includes the proper NuGet package reference to an HTML parser library.
- Extend the Function Code to Scrape a Website and Return a URL
- The code should be modified to find a specific link on the supplied NPPES web page.
- The function tests successfully by returning the URL.