Search code examples
azurevisual-studio-codeopenai-apichatgpt-api

VS Code: Azure workspace folders do not appear after I run a function


In VS Code in Windows 10, using python 3.9.13, I run a function and it just returns paths in the terminal. The call stack appears for an instant in the left margin and disappears, then "No local workspace resources exist" appears where my workspace folder should be. I ran this function several times in previous days without this issue. I want to deploy the function but I can't because there is nothing under Workspaces. The image is a screenshot of what it does after I run the function.enter image description here


Solution

    • Open BasicAzureFunction in an Integrated terminal in VS Code and run > func host start in your terminal for your Function to run.
    • Or else, Just open BasicAzureFunction folder in VS Code > And click on fn + f5 or Run > start Debugging.
    • Your function will be triggered> Do not open entire Udemy folder, Just open BasicAzureFunction in your Vs Code.
    • If that doesnot work run the function from the child folder where the function is present and then run function from BasicAzureFunction and it will run the function.