Install an older LTS Node version (for example Node 18 or Node 16 rather than the newest release):
https://nodejs.org/en/download
step 2:
node --version
npm --version
step 3:
npm install -g azure-functions-core-tools@4 --unsafe-perm true
step 4:
func --version
step 5:
dotnet --version
step 6:
mkdir C:\AzureDemo
Step 7:
func init MyFunctionApp --worker-runtime dotnet-isolated
Step 8:
cd MyFunctionApp
step 9:create http trigger function
func new
Step 10: enter the function name hellofunction
Step 11: It will create automatically, to check the name hellofunction.cs create new file
Step 12: func start
Step 13: url - http://localhost:7071/api/HelloFunction
Comments
Post a Comment