eShop icon indicating copy to clipboard operation
eShop copied to clipboard

[WebToolsE2E][Aspire] When deploying eShop.web solution, running 'azd up' failed with: Property 'containers.name' has an invalid value 'EventBus'.

Open v-cazhang opened this issue 1 year ago • 0 comments

REGRESSION INFO: Not repro on Aspire 8.0.0-preview.2.23619.3

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.10 Preview 1 [latest build, includes Aspire 8.0.0-preview.3.24105.21 ]
  3. Apply NuGet Feeds
  4. Install Docker Desktop for Windows

REPRO STEPS

  1. Clone eShop repo from preview.3 branch
  2. Update NuGet.config to use the correct feeds
  3. Open eShop.web.slnf
  4. Build
  5. Right-click solution > Open Folder in File Explorer. In the opened folder, click any place > Open in Terminal
  6. Runing 'azd init', select 'Use code in the current directory' > Confirm and continue initializing my app, type a new environment name, press enter.
  7. When running azd init choose to expose 'webapp' to the Internet
  8. Run azd up to deploy to Azure

ACTUAL: Deployment failed with error: ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription: image

Deployment Error Details: InvalidTemplateDeployment: The template deployment 'resources' is not valid according to the validation procedure. The tracking id is 'd3323b6c-c40f-4a5a-b958-66c36f5b762b'. See inner errors for details. ValidationForResourceFailed: Validation failed for a resource. Check 'Error.Details[0]' for more information. ContainerAppInvalidPropertyValue: Property 'containers.name' has an invalid value 'EventBus'. A value must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character. TraceID: 91b11fc21df8e36cdb25bb5b1b8ef017

EXPECTED Deploy successfully.

v-cazhang avatar Feb 08 '24 09:02 v-cazhang