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

[WebToolsE2E][Aspire] For Aspire Starter App projects with redis checked, an error occurs when running ‘azd init’. #3624

Closed
v-reinawang opened this issue Apr 1, 2024 · 8 comments
Assignees
Labels
customer-reported identify a customer issue question
Milestone

Comments

@v-reinawang
Copy link

REGRESSION INFO: Not repro on Aspire 8.0 preview 4

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install SDK 8.0.203
  3. Install Aspire 8.0 Preview 5 [8.0.0-preview.5.24179.3]
  4. Apply NuGet Feeds.
  5. Install azd

REPRO STEPS

  1. Open Command Prompt, run the following commands to create and build an Aspire application
dotnet new aspire-starter --use-redis-cache -o aspirestarter
cd aspirestarter
dotnet build
  1. Runing 'azd init', select 'Use code in the current directory' > Confirm and continue initializing my app > select 'apiservice' and 'webfrontend', type a new environment name, press enter

ACTUAL
ERROR: configuring ingress for resource cache: binding for does not specify a container port, ensure WithServiceBinding for this resource specifies a hostPort value
image

EXPECTED
'azd init' can be run successfully.
image

@v-polly
Copy link

v-polly commented Apr 1, 2024

This issue also reproduce on Mac arm64 with .NET 8.0.204 April Servicing SDK + Aspire 8.0 Preview 5 [8.0.0-preview.5.24179.3] installed.
image

@balachir
Copy link

balachir commented Apr 1, 2024

@rajeshkamal5050 can we have someone investigate, please?

@rajeshkamal5050
Copy link
Contributor

@vhvb1989 this should be addressed by #3612 ?

@vhvb1989
Copy link
Member

vhvb1989 commented Apr 1, 2024

Yes, @rajeshkamal5050 #3612 has the fix for the breaking change

@balachir
Copy link

balachir commented Apr 2, 2024

@rajeshkamal5050 @vhvb1989 I tried using this script to get the latest azd to verify this fix. The script is installing version 1.8.0-beta.1-daily.3649348, which was the same version of azd when we opened this issue. Is there a newer version of azd available and how can I get it? Thanks!

@vhvb1989
Copy link
Member

vhvb1989 commented Apr 2, 2024

@balachir , azd's daily has an issue. We're working on it. The daily version you are getting is old.

@vhvb1989
Copy link
Member

vhvb1989 commented Apr 2, 2024

@balachir , azd daily build is ready now. You can run the script the get the latest and test.

@v-reinawang
Copy link
Author

Verify that this issue has been fixed in the latest build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported identify a customer issue question
Projects
None yet
Development

No branches or pull requests

5 participants