- Lab
- A Cloud Guru
Install Azure Functions Core Tools on Linux
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.
Path Info
Table of Contents
-
Challenge
Log in to the Azure Portal
Log in to the Azure Portal using the username and password supplied by the lab.
- Open a browser.
- Navigate to the provided Azure Portal URL.
- Use the supplied username and password to authenticate.
-
Challenge
SSH into the Linux VM
Starting in the Azure dashboard, perform the following tasks:
- Open the navigation menu in the upper-left of the Portal.
- 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. -
Challenge
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
-
Challenge
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.
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.