I try to create azure function app, but I can't select Linux OS, why?

cdytoby 96 Reputation points
2021-02-28T17:25:44.877+00:00

Whatever runtime stack I choose, .NET, python, etc, this Linux button is always gray, why?

My current Resource Group is Linux so I can't create a Function at all.

I'm totally new to this and I'm still in free trial.
I thought Azure Functions are free for low usage. And because of that, I can't even choose "consumption" plan.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,930 questions
Developer technologies | .NET | .NET Runtime
0 comments No comments
{count} votes

Accepted answer
  1. cdytoby 96 Reputation points
    2021-03-01T23:42:55.527+00:00

    I'll answer my own question, I also failed to create one from Visual Studio, and this time I have error message and a link to refer to.

    https://github.com/Azure/Azure-Functions/wiki/Creating-Function-Apps-in-an-existing-Resource-Group

    This is the link and now I understand why is this happening better. I already have a resource group and a web app, it's not allowed to create another function app in this resource group.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-02-28T21:37:53.13+00:00

    When you create an azure function make sure it is v2 or v3 azure function which uses .net core which is cross platform. v1 uses the .net framework which only works on windows


  2. Ken Tucker 5,861 Reputation points
    2021-02-28T23:56:25.337+00:00

    Sorry I was using Visual Studio to create the function. I was able to create one with my subscription

    72755-create-function-1.png

    72708-create-function-2.png

    0 comments No comments

Your answer

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