Create an Azure Function with the Azure Portal

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we use the Azure Portal to create an HTTP-triggered Azure function and then run the function by retrieving the function’s URL within a browser.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log In to the Azure Portal

Log in to the Azure Portal using the username and password supplied by the lab.

  1. Open a browser.
  2. Navigate to the provided Azure Portal URL.
  3. Use the supplied username and password to authenticate.
Create the Function App Service
  1. Select Create a Resource.
  2. Search for "function app".
  3. Click on the Function App tile.
  4. Press the Create Button.

Select or enter the following on the next tabs and pages:

Basics

  1. Subscription: Leave as-is.
  2. Resource Group: Select the only available group.
  3. Function App name: Create a unique name. The Portal shows a green check when the name is valid.
  4. Publish: Leave as Code.
  5. Runtime stack: Select .Net Core.
  6. Region: Leave as-is.

Hosting

Leave everything as-is, except the following:
Plan type: Select App service plan.

Sku and size: Change to Standard S1.

Monitoring

Leave everything as-is.

Then click on the *Review + create** button.

On the next page, click the Create button.

The Function App service will then deploy. This will take several minutes. When it is complete, the Portal shows a page with Your deployment is complete

Click the Go to resource button.

Create the HTTP-Triggered Function
  1. Click the Functions menu item in the navigation tree on the left-side of the page.
  2. Click the New function link near the top-center of the page.
  3. From the list of trigger types, click HTTP trigger.
  4. In the New Function panel that appears on the right of the page, enter "MyHttpFunction" as the name, and leave Function as the Authorization level.
  5. Click the Create button.
  6. Wait for the function to appear.
Test the Function
  1. Click the Test link on the right of the browser page to open the test panel.
  2. In the panel that opens, click the Run button near the bottom.
  3. Verify the the reception of a Status 200 OK message and a Hello, Azure message in the Output panel.
  4. Open the logs panel by clicking on the Logs link below the function’s source, and verify that the function has run.

Additional Resources

You have been asked by your manager to create an Azure Function that can be executed via an HTTP GET request. You need to log in to Azure, create the function app service and the associated HTTP-triggered function, and ensure that it can be run.

What are Hands-on Labs

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?