-
Is there an existing issue for this?
Describe the bugI have added multiple compute environments just to my resources since I want to test it locally using docker compose locally without aspire and also deploy to azure. If I have something like
where the environments are defined with
the images are not built for those resources. If I comment out one of the Expected BehaviorThe image should always be built, it should not matter on the number of environments attached to it. Steps To ReproduceFirst add two environments:
Then add a resource using both:
Exceptions (if any)No response .NET Version info.NET SDK: Runtime Environment: .NET workloads installed: Host: Anything else?.NET Aspire 9.3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That's not how you'd go about testing multiple environments. You don't need to copy this verbatim but you need to switch based on something: aspire/playground/publishers/Publishers.AppHost/Program.cs Lines 11 to 22 in 90e55c7 You only need WithComputeEnvironment when you are using both at the same time. |
Beta Was this translation helpful? Give feedback.
-
I attempted to use Azure Container Apps on its own but wasn’t able to build any images. However, when I tested the Docker Compose setup, it worked exactly as expected. `var containerApps = builder.AddAzureContainerAppEnvironment("containerapp-env"); logapi = logapi.WithComputeEnvironment(containerApps).PublishAsAzureContainerApp((infra, app) => }); }); |
Beta Was this translation helpful? Give feedback.
That's not how you'd go about testing multiple environments. You don't need to copy this verbatim but you need to switch based on something:
aspire/playground/publishers/Publishers.AppHost/Program.cs
Lines 11 to 22 in 90e55c7