[Issue] azd up
and azd deploy
fail on SDK 9.0.102 with the error publishing container: failed to get dotnet target port: empty dotnet configuration output with dotnet publish output
#4713
Labels
customer-reported
identify a customer issue
.NET
Pull requests that update .net code
.NET 9.0
question
Output from
azd version
Run
azd version
and copy and paste the output here:azd version 1.11.1 (commit ae08ceba17c7078c547df9ee5f97e9e7ceb2fe53)
Describe the bug
azd up
andazd deploy
fail with the error:EnableSdkContainerSupport
is enabled, and these commands work with dotnet SDK 9.0.100, but fail with 9.0.102.The cause seems to be that
dotnet publish
is not returning the JSON configuration data.This may be a bug with
dotnet publish
, but I've spotted thatpublish
seems to now be generating multiple containers with different architectures - which may be why the JSON is missing.If so it might be possible for
azd
to instruct publish to the previous behaviour (we probably don't need multiple containers for different architectures uploaded to Azure).I've raised the issue with
dotnet publish
here dotnet/sdk#46176 , but felt the multiple arch containers for the same buildTo Reproduce
There is a repo here which show the
dotnet publish
issue, and fails to produce the container information json when usingdotnet publish
.I've not tried it (due to azure account restrictions), but it should cause
adz deploy
to fail.Expected behavior
azd deploy
andazd up
should run without erroring, allowing new images to be uploaded and have the container app switched over to the new image.Environment
Information on your environment:
* C#
* Visual Studio 17.12 & command line
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: