No bindings available when trying to add binding to Azure function

Meri Svragulja 0 Reputation points
2023-09-19T11:58:27.3533333+00:00

Hey, I'm new to this so I'm sorry if it makes little sense!

I was following a course on Udemy for Azure functions and developing them locally using VS Code. I installed Azure functions core tools and in VS Code I installed Azure Tools extension.
The course demonstrated how to add bindings to a function and I did so by right clicking on the function.json file and selecting "Add binding...". From there I would choose the direction and after that choose which binding I want (Blob storage for example). However, the list of available bindings doesn't show anymore. It worked for the one day I did that tutorial and the next day the list shows as empty.
How it used to be:
addbindingissue2

And how it is now:

addbindingissue

I tried restarting VS Code, restarting the PC, reinstalling the core tools and the extensions, signing out and back in to my Azure account, creating new function apps, but nothing has worked so far.

Please help

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

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,801 Reputation points Microsoft Employee
    2023-09-19T22:09:40.9966667+00:00

    Hello @Meri Svragulja - Welcome to Azure and MS Q&A!

    Do you still have existing functions in the project folder? I just did a quick test in an attempt to reproduce, and the "Add binding" feature seems to populate the available binding list based on existing functions in the local file structure. For example, when I have only an HTTP-triggered function and navigate the Add binding, it only shows HTTP binding options. When I proceed to create an additional function, a Blob Triggered function, and navigate its "Add binding" again, it shows more options:
    User's image

    I'd definitely suggest continuing to poke around in VS Code and experimenting with other types of Functions and their bindings. Here's our official doc detailing steps for creating a new function in VS Code which should list the complete list of binding options. If you find that none of these help and you still keep hitting an empty list of binding options, I recommend opening a new issue directly with the owning team for the VS Code extension on the following Github repo: https://github.com/microsoft/vscode-azurefunctions/issues


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.