An opinionated F# azure function template
$ dotnet add package FunctionalIT.AzureFunctionAn opinionated F# Azure Function template.
It comes with a HTTP-Trigger function ootb.
.editorconfigdotnet new fit-azurefunction -o MyAzureFunc
will give you a folder structure as follows:
.config
dotnet-tools.json
.paket
Paket.Restore.targets
.vscode
settings.json
src
FIT.AzureFunc
FIT.AzureFunc.fsproj
paket.references
function.json
host.json
local.settings.json
Greet.fs
Program.fs
Readme.md
FIT.AzureFunction.sln
.editorconfig
.gitignore
global.json
paket.dependencies
paket.lock
You can then run the function from within the folder as follows:
# install and run azurite in separate folder and bash
azurite
dotnet tool restore
cd src/FIT.AzureFunc
func start
# or use visual studio, visual studio code or Rider
cd src/FIT.AzureFunc
dotnet paket add <package name>
cd src/FIT.AzureFunc
dotnet paket remove <package name>
dotnet paket update --keep-major