Skip to content

Files

Latest commit

author
Glenn Gailey
Apr 1, 2020
a4b77e1 · Apr 1, 2020

History

History
20 lines (19 loc) · 1009 Bytes

functions-cli-add-function.md

File metadata and controls

20 lines (19 loc) · 1009 Bytes
author ms.service ms.topic ms.date ms.author
ggailey777
azure-functions
include
03/25/2020
glenga

::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python" Add a function to your project by using the following command, where the --name argument is the unique name of your function (HttpExample) and the --template argument specifies the function's trigger (HTTP).

func new --name HttpExample --template "HTTP trigger"

::: zone-end
::: zone pivot="programming-language-csharp" func new creates a HttpExample.cs code file. ::: zone-end ::: zone pivot="programming-language-javascript,programming-language-typescript,programming-language-python,programming-language-powershell" func new creates a subfolder matching the function name that contains a code file appropriate to the project's chosen language and a configuration file named function.json. ::: zone-end