-
Notifications
You must be signed in to change notification settings - Fork 624
[WebToolsE2E][Aspire] Running two Aspire projects with Azure Functions at the same time will cause the 'functionapp1' to stop after a few seconds for one of the projects. #8501
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
Comments
Did you look at the logs? Is there a port conflict? |
Always the console logs. Download them an attach to the issue. This is expected, there's a port conflict because the port is specified in the launch settings and you are launching the same project twice. |
@vmykagapuz Ditto the previous comments. Can you share the logs that are associated with the failure mode where two different ports were used? If you can upload the code you are running to GH or somewhere that would help as well. |
Logs for 1st project with no failure:
Logs for 2nd project with failure:
|
@davidfowl @captainsafia @balachir I tried this scenario and found that Function Apps use port 7071 by default, so when one starts, the other will automatically stop because the port is occupied. When I manually change the default port of one of them, both apps can keep running at the same time. |
Seems like an issue with the functions templates. Moving out of 9.2. We'll work with the functions team to see if we can do something here with the template. |
Related to #8589 |
REGRESSION INFO
INSTALL STEPS
dotnet new install Aspire.ProjectTemplates::9.2.0-preview.1.25201.19 --force
NOTE
REPRO STEPS
ACTUAL

The 'functionapp1' for the second project will stop after few seconds.
EXPECTED
The 'functionapp' should run successfully when 2 different projects are run the same time.
The text was updated successfully, but these errors were encountered: