Skip to content

[Issue] [aspire] azd deploy removes custom domain bindings, can't work around after 1.9 #3875

@mip1983

Description

@mip1983

Output from azd version
Run azd version and copy and paste the output here:

azd version 1.9.0 (commit 651394c)

Describe the bug

After running 'azd deploy' (locally or via CI/CD), custom domain bindings are removed from my container apps.

I was working around this using 'azd infra synth' as I've outlined here, with custom domains added to the output of the bicep files and referenced in the yaml files.

As of 1.9, the *.tmpl.yaml files have moved to the AppHost of the aspire project, and despite adding back in the yaml for the custom domain, it doesn't seem to be picking it up n working anymore.

To Reproduce
Deploy the aspire starter template. Set up a custom domain binding with a bring your own certificate on the deployed web app. Redeploy via azd having run azd infra synth. See domain binding disappear.

Expected behavior
Domain bindings should be retained, and ideally #1765 addressed so there's a clear way of doing this.

Environment
Information on your environment:
* .NET 8 Aspire preview 6
* IDE and version : Visual Studio 2022 10.0 Preview 7

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions