20

I have a node function app that runs fine locally and when deployed. However, I receive the error : Your azure function app has functions_worker_runtime set to node while your local project is set to none and am unable to deploy it if I don't check in local.settings.json which has the FUNCTIONS_WORKER_RUNTIME set to node. My arm template app settings has the FUNCTIONS_WORKER_RUNTIME set to node.

I've tried setting an environment variable during deployment, but it seems like it is reading it out of local settings?

How can I deploy this without checking in the local.settings.json file?

2
  • when you deploy, it will never look at your local.settings file Commented Jul 10, 2019 at 21:20
  • i would create a blank node app through azure and see exactly what app settings are configured in the portal for it Commented Jul 10, 2019 at 21:21

1 Answer 1

31

I encountered the same error when publishing a function using below command from Travis CI build.

func azure functionapp publish <APP_NAME>


Error:

Your Azure Function App has 'FUNCTIONS_WORKER_RUNTIME' set to 'node' while your local project is set to 'None'.
You can pass --force to update your Azure app with 'None' as a 'FUNCTIONS_WORKER_RUNTIME'


Resolved it by specifying the language in-line as below,

func azure functionapp publish <APP_NAME> --typescript

Strangely, the publish options listed in documentation doesn't mention this option. Was able to figure it out with the help of a hint that came along with the error message above.

Sign up to request clarification or add additional context in comments.

3 Comments

Even after almost a full year, this helped me out (although in my case it was --python). Thanks!
To extend this further the available options seem to be as follows: --csharp, --javascript, --typescript, --java, --python, --powershell, --custom
Helped a lot! Without this publish of a Timer-based V4 function for windows does not work correctly and no function is seen in Azure Function App.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.