Am not able to deploy a simple function in python to function app

Mithun 1 Reputation point
2022-12-30T10:47:30.967+00:00

Am getting the following error when initializing a python project folder for function app

Internal error: Expected value to be neither null, undefined, nor empty: projectLanguage

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,937 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2023-01-06T14:15:34.617+00:00

    @Mithun Thanks for reaching out. As per the error it looks like you are trying to deploy through VS code and looks like there is issue with the extension or the Azure Function Core Tool (multiple core tools etc.) is not installed correctly. I will suggest you to verify the prerequisites and the steps in the document. There can be scenario where the azure function core tool would be causing the issue. Please verify which version of Azure Function Core Tool is install on your machine by navigating to the Control Panel. In case if you are using v3 then uninstall v4 and open your Powershell and run following command:

    npm install -g azure-functions-core-tools@3 --unsafe-perm false  
    

    In case if you have validated that the installation is correct along with extension then please share the screenshot, full exception message and how you are trying to deploy your function app so we can assist you further.

    0 comments No comments

  2. Madhusudan Vishnupurikar 21 Reputation points
    2023-03-14T06:50:32.1+00:00

    I was getting exact same error for nodejs based function. Resolved it by accepting option to select default function in vscode coming as pop up. It adds .vscode directory at root level of repo with files as extensions.json, launch.json, settings.json, tasks.json and gitignore to remove .vscode entry. If you remove these files there might be possibility that extension will not prompt for recreation. Better to shelve and reuse whenever required. Hope this helps someone.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.