function.json file missing

Kirkwood Williams 10 Reputation points
2023-10-08T21:04:43.78+00:00

Hi all,

New to Azure and followed the docs to create a new http trigger function in VSC. The function works and I was able to view the output to the browser with no issue. I am now attemtping to add output bindings but cannot find the "functions.json" file in my project folder that should have been created automatically. After a few days I decided to just create one manually.

To add further context, when trying to add bindings, I received the error message " Add binding is not supported for this project type."

2023-10-08 17_17_29-Settings - Untitled (Workspace) - Visual Studio Code

Also, when the function was created, the azure-functions dependencies produced " not defined" in the requirements.txt file. Again, I'm simply following the prompt to create a basic function.2023-10-08 17_22_55-requirements.txt - Untitled (Workspace) - Visual Studio Code

Any idea why I don't seem to have this file? I've tried creating multiple functions but none seem to have this file. Any advice would be greatly appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,678 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kirkwood Williams 10 Reputation points
    2023-10-08T21:52:59.9666667+00:00

    Found out why the function.json was missing. When creating a new python function I selected V1 instead of V2 this time. Now I can see the file.

    2 people found this answer helpful.