Please make sure you have installed :-
Azure Core Tools 2.x
Initialize your project
func init MyFunctionProj
Create a new function
func new --name MyHttpTrigger --template "HttpTrigger"
Other valid templates are :-
EventHubTrigger
EventHubTrigger
You can find out triggers supported from
here.
Deployment scripts :-
myResourceGroup=functionResource
targetlocation=southwestaustralia
az group create --name $myResourceGroup --location $targetlocation
az storage account create --name functionAppDatastore --location $targetlocation --resource-group myResourceGroup --sku Standard_LR
az functionapp create --resource-group $myResourceGroup --consumption-plan-location $targetlocation \
--name httpfunctionApp --storage-account functionAppDatastore --runtime dotnet
Deployment
func azure functionapp publish httpfunctionApp
Comments