Open jongalloway opened 5 months ago
This restriction is specific to Azure Container Apps I believe, so ideally AZD would fail earlier (well before attempting to deploy the app container) with an error making it clear that the app name is invalid. @ellismg
We definitely should have an analyzer that validates resource names based on the rules in ModelName.ValidateName
which is tracked by #1209
Adding a project reference to apphost using an uppercase name will work fine locally but errors out during publish.
Repro:
Program.cs
in theAppHost
to change the project reference name to include uppercase characters:Deployment fails with the following error message:
Changing the reference name to lowercase using
builder.AddProject<Projects.AspireSample_Web>("webfrontend")
and republishing will succeed.We should both document this issue and ideally include an analyzer or warning that reference names should be lowercased.