Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon
Labs

Create an Azure Function with the Azure Portal

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.

Azure icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Feb 28, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    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.
  2. Challenge

    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.
    6. Region: Leave as-is.

    Hosting

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

    Pricing Plan: 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.

  3. Challenge

    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.
  4. Challenge

    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.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans