Skip to content

Develop Azure Functions Locally

Philip Fourie edited this page Apr 2, 2022 · 3 revisions

Install

Install CLI tools

npm install -g azure-functions-core-tools@3

Required for Dependency Injection

dotnet add package Microsoft.NET.Sdk.Functions --version 3.0.5
dotnet add package Microsoft.Azure.Functions.Extensions --version 1.0.0

Build

func init
func new
func start --build

# Publish to <app-name>.azurewebsites.net
func azure functionapp publish <app-name>

Settings

func azure functionapp fetch-app-settings <func-name> --output-file local.settings.json
func settings decrypt

Clone this wiki locally