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

Add support for Azure Functions #245

Open
lars-houtman opened this issue Sep 6, 2024 · 3 comments
Open

Add support for Azure Functions #245

lars-houtman opened this issue Sep 6, 2024 · 3 comments
Labels
feature New feature or request

Comments

@lars-houtman
Copy link

lars-houtman commented Sep 6, 2024

Originally a bug report, however I was made aware this was a feature request. The requested feature is as follows: add support for Azure Function Core Tools to run our Function projects with Aspire in Rider.

Original post:

Describe the bug
When using Rider to start Azure Functions, they are not run with the correct Azure Function Core Tools but with the .net runtime itself.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Aspire solution
  2. Create a new Azure Functions project
  3. Reference the Azure Functions in your AppHost
  4. Add builder.AddProject<Company_FunctionApp1>("fn"); to your AppHost Program.cs
  5. Run AppHost

Expected behavior
I expect the Azure Function to start normally. It does so in Visual Studio.

Screenshots
The following exception is thrown and the Function does not start.
image

System information:

  • OS: Windows 11
  • .NET version: 8.0
  • JetBrains Rider version: 2024.2.3
  • Aspire plugin version: bundled 1.3.0
  • Aspire workload version: 8.2.0
@lars-houtman lars-houtman added the bug Something isn't working label Sep 6, 2024
@lars-houtman
Copy link
Author

Extra: the logs from the function when starting the AppHost via Visual Studio are as follows:
image

@rafaelldi
Copy link
Collaborator

Sorry, but this is not a bug but a feature request. The Azure Function project is not a regular dotnet project. It needs to be run using Azure Function Core Tools. This is not yet supported by the plugin.

@rafaelldi rafaelldi added feature New feature or request and removed bug Something isn't working labels Sep 6, 2024
@lars-houtman
Copy link
Author

Sorry, but this is not a bug but a feature request. The Azure Function project is not a regular dotnet project. It needs to be run using Azure Function Core Tools. This is not yet supported by the plugin.

Oh, apologies. I assumed the target was to work like in Visual Studio. I will rephrase my post.

@lars-houtman lars-houtman changed the title Azure functions not working Add support for Azure Functions Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants