You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid a panic and provide a better error message when containerPort is missing in binding. This is a runtime check for what should normally be handled at compile-time.
Related to: #3070
Output from
azd version
Run
azd version
and copy and paste the output here:azd version 1.5.0 (commit 012ae73)
Describe the bug
azd up
will cause a go panic if you run it on an .NET aspire starter template after adding these lines to AppHost's program.cs:It's perhaps that Aspire is generating something wrong, but either way, both sides (aspire generator and azd consumer) can be more defensive
To Reproduce
Make a .NET 8 Aspire Starter app, and add these lines to Program.cs. This app will build and run fine, but
azd up
won't run.Expected behavior
I expect it at least try to deploy or throw a reasonable error.
Environment
Information on your environment:
@davidfowl
The text was updated successfully, but these errors were encountered: