Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run locally? #2914

Open
rwb196884 opened this issue Jan 9, 2025 · 2 comments
Open

Is it possible to run locally? #2914

rwb196884 opened this issue Jan 9, 2025 · 2 comments
Labels
Needs: Author Feedback question Further information is requested

Comments

@rwb196884
Copy link

Description

Trying to create an Azure function and run it locally from VisualStudio.

The documentation at https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=hostbuilder%2Cwindows#start-up-and-configuration implies that this should be possible.

However, it is not.

Image

What is HostEndpoint and how do I configure it?

CannotRunAzureFunctions.zip

@rwb196884 rwb196884 added the enhancement New feature or request label Jan 9, 2025
@rwb196884 rwb196884 changed the title Ia it possible to run locally? Is it possible to run locally? Jan 9, 2025
@bzbetty
Copy link

bzbetty commented Jan 10, 2025

Might need to add in .ConfigureFunctionsWorkerDefaults() like the document you referred to does.

@jviau
Copy link
Contributor

jviau commented Jan 10, 2025

Function apps need to be ran with func tooling. It appears visual studio is not recognizing this as a function app and launching it correctly.

  1. Ensure you functions tooling is up to date: Tools -> Options -> Projects and Solutions -> Azure Functions -> "Check for updates". Restart VS
  2. Verify your project is recognized as a function app. The project will be shown with the func icon in solution explorer:

Image

@jviau jviau added question Further information is requested Needs: Author Feedback and removed enhancement New feature or request Needs: Triage (Functions) labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants