Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfabijanski/2d2bda86853771e720fc370fd9586362 to your computer and use it in GitHub Desktop.
Save sfabijanski/2d2bda86853771e720fc370fd9586362 to your computer and use it in GitHub Desktop.
Setting VS Code to use Azure Function extension on Fedora 30

Getting Started with Azure Functions in VS Code on a Fedora 30 workstation

The Azure Functions extension requires the installation of .Net Core to run properly and the Azure Functions Core Tools. These instructions walk through the proper steps required to get extension running properly on a Fedora 30 workstation.

First ensure .Net Core is in place

dotnet --version

The install for the Function Core Tools requires at least the 2.2 SDK

Installing the .Net core SDK from a Copr Repository

The SDK is not yet in the main Fedora package system. A Copr repo is required

  • Add the repo sudo dnf copr enable @dotnet-sig/dotnet

  • install at least the 2.2 version sudo dnf install dotnet-sdk-2.2

Download latest Azure Function Core Tools (v2.7.1415 at present)

Found at: https://github.com/Azure/azure-functions-core-tools

Unzip the downloaded zip file to a working directory ( where <version_number> matches the number of the file downloaded

unzip -d ~/tmp/azure-functions-cli azure-functions-core-tools-2.7.1415.zip

Move into the directory

cd ~/tmp/azure-functions-cli/azure-functions-core-tools-2.7.1415

Build the functions cli

sudo sh build.sh

If all goes well, this creates the completed app in the /tmp/cli folder

Move the built system to a reasonable location

cp -r /tmp/cli/* /opt/azf-cli

Set the files to be executable

sudo chmod -R 755 /opt/azf-cli

Set the folder on your path

export PATH=$PATH:/opt/azf-cli

Verify you can run the tool

func --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment