-
Notifications
You must be signed in to change notification settings - Fork 451
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
[WebToolsE2E] Publish Azure Function app under Aspire orchestration, the publish succeeds but the ACA fails to load successfully #6297
Comments
@balachir I believe that you may be running into this issue because the Functions templates are not yet updated to use the latest versions of their packages which provide container support. I've added a note about this in the instructions but here it is for posterities sake.
Can you confirm the versions referenced in the project you deployed and see if updating to the above resolves the issue? |
I tried out the azd integration for the first time today, and with lastest Aspire 8.* as well as the latest preview here (https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json) I experience the same This is with something as simple as: // AppHost Program.cs
var builder = DistributedApplication.CreateBuilder(args);
builder.AddProject<Projects.WebApi>("web-api");
builder.Build().Run();
// WebApi Program.cs
var builder = WebApplication.CreateSlimBuilder(args);
var app = builder.Build();
app.MapGet("/", () => TypedResults.Ok("Hallo"));
app.Run(); |
@KennethHoff It looks like you're running into an issue with a Minimal API project. I'd recommend filing a new issue for that. This bug relates to deployment for Azure Functions. |
(I figured out my problem btw; It was because I seemingly needed |
@balachir Does this issue still repro with the latest versions of Visual Studio and Aspire? The Functions templates should be updated to use the correct versions in Visual Studio now. |
Hey @balachir, have you had a chance to test this one again? It would be good to validate that this is fixed. |
This doesn’t look like a real issue or specific to functions app, we need to add the code |
@v-elenafeng The |
@captainsafia @v-elenafeng I tried this again today and I'm able to get this to work now for Functions (.NET 8 Isolated) template. Two changes are needed to get the deployment to ACA to work successfully.
After I do this, I can get the Functions app and dashboard showing in Azure. I'll go ahead and close this issue. We can open a new one if there are additional problems. |
INSTALL STEPS
dotnet new install Aspire.ProjectTemplates::9.0.0-rc.1.24511.1 --force
REPRO STEPS
New Project > Azure Functions app > .NET 8.0 Isolated > Http Trigger > Anonymous authentication > FunctionApp_net80_15
Run the app locally (Ctrl+F5 using VS) - works fine
Open command-line, run
azd init
andazd up
- publish completes successfullyClick on the ACA endpoint in the publish output to open it
ACTUAL
ACA page shows that the container app is stopped or does not exist.
Container app shows activation failed in the Azure portal
EXPECTED
ACA to be available and running after publish
The text was updated successfully, but these errors were encountered: