Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Azure icon
Labs

Using Azure Functions with C#

In this lab, you will gain experience using C#, Visual Studio, and Azure Functions. You will build an Azure function using C# code that is triggered by a webhook and saves data to Azure Table storage using a Table storage binding. You will then run a console application to see everything working and will verify that table data was saved using Azure Storage Explorer. Finally, you will check the Azure portal to ensure telemetry data was saved to Application Insights. Upon completion of the lab, you will have gained the experience required to work with Azure Functions using C#.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 21, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create Function and Application Insights in the Azure Portal
    1. Review the lab-provisioned resources.
    2. Take note of the resource group location and the 5 character suffix for all of the deployed resources. These will be used later in the lab.
    3. Create a new function app.
    4. Once deployed, enable Application Insights.
  2. Challenge

    RDP into the VM, Configure Storage Explorer, and Open the Visual Studio Solution
    1. Download the RDP file for the lab-provided VM.
    2. Connect to the VM, clone the Azure labs repository, and extract from it the solution file for the lab.
    3. Download and install Azure Storage Explorer.
    4. Configure storage explorer using resources created in the lab.
    5. Open the extracted solution file to start Visual Studio.
  3. Challenge

    Update and Run Visual Studio Solution, Verify Table Data using Storage Explorer, and Verify Application Insights Data
    1. Using Visual Studio, update the local.settings.json and Functions1.cs files with information copied during previous lab objectives as well as the following code:

      public static class Function1
      {
          [FunctionName("Function1")]
          [return: Table("<TABLE_NAME>", Connection = "StorageConnectionAppSetting")]
          public static SampleData Run(
              [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)]
              HttpRequest req,
              ILogger log)
          {
              log.LogInformation("C# HTTP trigger function processed a request.");
      
              string name = req.Query["name"];
      
              return new SampleData()
              {
                  PartitionKey = "Http",
                  RowKey = Guid.NewGuid().ToString(),
                  Text = name
              };
          }
      }
      
      public class SampleData : TableEntity
      {
          public string Text { get; set; }
      }
      
    2. Run the updated function.

    3. Using a web browser, test the updated function.

    4. Verify the data is stored in the table successfully using Azure Storage Explorer.

    5. Review the telemetry data using Application Insights.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight