Install Azure Functions Core Tools on Linux

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we install Azure Functions Core Tools on an Ubuntu VM. After that, we will be able to develop and run Azure Functions.

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.
SSH into the Linux VM

Starting in the Azure dashboard, perform the following tasks:

  1. Open the navigation menu in the upper-left of the Portal.
  2. Click on All resources.

Wait for the all resources list to appear.

In the list, click on the lab-VM resource.

Wait for the VM overview page to open. On that page, make note of the public IP address.

Open an SSH client. On Linux, try using Putty or a Bash terminal in Windows Subsystem for Linux. On Windows or Mac, just open a terminal window.

The following is for using command-line SSH. For Putty, consult how to connect using its documentation.

SSH into the VM using Putty or the terminal. In a terminal, the command is:

ssh cloud_user@<ip address of VM>

Accept the fingerprint of the certificate. When asked for a password, use Azure!Funcs!VM to log in.

Install Azure Functions Core Tools

Execute the following commands one-by-one on the Linux CLI:

sudo apt-get update -y
sudo apt-get upgrade -y
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install apt-transport-https -y
sudo apt-get install dotnet-sdk-2.1 -y
sudo apt-get install azure-functions-core-tools -y
Test That the Azure Function Core Tools Are Properly Installed

Execute the following command at the terminal:

func

If successful, it will show a bunch of output and the Azure Functions lightning bolt.

Additional Resources

As a developer in your organization, you need to prep an Linux VM to become a development system for Azure Functions. You are provided with an Azure Linux VM and need to prep the system for development.

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?