Skip to content

maximivanov/azure-functions-set-nodejs-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set Node.js version in Azure Functions (test lab)

Full blog post here.

There's a dev container for VS Code included to start quickly.

Create 4 function apps:

  • Linux Premium
  • Linux Consumption
  • Windows Premium
  • Windows Consumption
cd terraform

terraform init

terraform apply

Publish the version printer function to the function apps:

func azure functionapp publish <function app name linux premium>
func azure functionapp publish <function app name linux consumption>
...

Check Azure Functions runtime version:

curl -sS 'https://<function app name>.azurewebsites.net/admin/host/status?code=<master key>' | jq

Check Node.js version:

curl https://<function app name>.azurewebsites.net/api/hello-world

About

Test lab consisting of 4 function apps to test switching of Node.js version in Azure Functions

Topics

Resources

License

Stars

Watchers

Forks