Replies: 1 comment 8 replies
-
Hello @IoBebe , you don't actually need All you need is dotnet9, which I think you already have. After that, you are actually facing a bug in azd. I've started a fix for it. Thank you for starting the conversation. I've created this issue: #4489 |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My Context
I'm exploring dotnet aspire and azd. My current focus is applying a specific naming conventions.
I'm stuck at customizing the Name of the Microsoft.App/containerApps resource.
Problem
Digging around I've found the alpha.aspire.useBicepForContainerApps (AZD side) and the .PublishAsAzureContainerApp (aspire side).
I've figured out how it generally works, I've customized the bicep template for the Microsoft.App/containerApps resources, I've hooked it up to AZD and managed to provision the resources correctly.
However, I can't azd deploy properly because azd is still looking for the Microsoft.App/containerApps resource based on the friendly "service name" from the dotnet aspire orchestration and the manifest.json file.
Question
@ellismg
Assuming I'm doing the following on the Dotnet Aspire side:
Shouldn't the azd side use
targetResource.Name
be used instead ofserviceConfig.Name
in this segment here:from: https://github.com/Azure/azure-dev/blob/c5afa7de6b263e9a5992e85d0940294c611bd70a/cli/azd/pkg/project/service_target_dotnet_containerapp.go#L419
Repro
Aspire version:
<Sdk Name="Aspire.AppHost.Sdk" Version="9.0.0-rc.1.24511.1" />
Azd version:
azd version 1.10.3 (commit 0595f33fe948ee6df3da492567e3e7943cb9a733)
I've ran:
azd deploy phone-book-api --debug
** The Deployment Result in Azure:
The Error I'm getting: azd deploy output.txt
(I've included the pooling for the deployment result of the Container App. You can see that the deployment names match
Beta Was this translation helpful? Give feedback.
All reactions