question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

F# support in Azure functions

See original GitHub issue

In the core tools, using func shows the help page. In this, under the ‘new’ section it states the following

 new     Create a new function from a template. Aliases: new, create
    --language [-l]  Template programming language, such as C#, F#, JavaScript, etc.
    --template [-t]  Template name
    --name [-n]      Function name
    --authlevel [-a] Authorization level is applicable to templates that use Http trigger, Allowed values: [function, a
                     nonymous, admin]. Authorization level is not enforced when running functions from core tools
    --csx            use old style csx dotnet `functions`

Here it states F# can be used however in creating a new function app, F# is not an option to begin with and also specifying F# as a language ends up generating a C# file (tried both --langauge, -l , F# and FSharp).

The documentation for the core tools also completely omits F# even though it is listed in the core tools help pages. Please add the templates/support for F# or correct the core tooling help pages so as not to mislead and confuse.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aaronpowellcommented, Oct 16, 2022

@aaronpowell , any idea if there is any further work on this? Or @apawast?

Looks like there’s a bug in the template selection logic, I’ve raised #3171 for it.

1reaction
baileydoestechcommented, Aug 29, 2021

Useful example of F# on .NET5 in Azure functions: https://github.com/Choc13/az-function-fsharp-net5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Functions Overview
Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs.
Read more >
Azure Functions documentation
Azure Functions is a cloud service available on-demand that provides all the continually updated infrastructure and resources needed to run your applications.
Read more >
Azure Functions F# developer reference
F# for Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. Data flows into your...
Read more >
Supported languages in Azure Functions
This article explains the levels of support offered for languages that you can use with Azure Functions. It also describes strategies for ...
Read more >
Azure Functions language runtime support policy
To maintain full-support coverages for function apps, Functions support aligns with end-of-life support for a given language.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found