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.
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.
- Open a browser.
- Navigate to the provided Azure Portal URL.
- Use the supplied username and password to authenticate.
- 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!VMto 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:
If successful, it will show a bunch of output and the Azure Functions lightning bolt.