Share via

How to install Azure Functions Core Tools on Arch Linux?

Juliana Ramayo Cardoso 0 Reputation points
2023-11-07T15:11:30.61+00:00

I'm trying to make a local function of azure in VS Code, when starting to debugging it appears that I must have Azure Functions Core Tools , I've tried to in install it but for some reason Azure does not recognize it.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 60,816 Reputation points Volunteer Moderator
    2023-11-07T16:02:29.42+00:00

    Hi Juliana,

    Try the following:

    The following steps use APT to install Core Tools on your Ubuntu/Debian Linux distribution. For other Linux distributions, see the Core Tools readme.

    1. Install the Microsoft package repository GPG key, to validate package integrity:

    BashCopy

    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
    
    1. Set up the APT source list before doing an APT update.

    Ubuntu

    BashCopy

    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
    

    Debian

    BashCopy

    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -f 1)/prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
    

    Check the /etc/apt/sources.list.d/dotnetdev.list file for one of the appropriate Linux version strings in the following table:

    Debian 11 bullseye
    Debian 10 buster
    Debian 9 stretch
    Ubuntu 22.04 jammy
    Ubuntu 20.04 focal
    Ubuntu 19.04 disco
    Ubuntu 18.10 cosmic
    Ubuntu 18.04 bionic
    Ubuntu 17.04 zesty
    Ubuntu 16.04/Linux Mint 18 xenial
    1. Start the APT source update:

    BashCopy

    sudo apt-get update
    
    1. Install the Core Tools package:

    BashCopy

    sudo apt-get install azure-functions-core-tools-4
    

    Cited from https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=linux%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps&pivots=programming-language-csharp


    If this is helpful please accept answer.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.