-
Notifications
You must be signed in to change notification settings - Fork 213
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
[Issue] [aspire] azd deploy removes custom domain bindings, can't work around after 1.9 #3875
Comments
@mip1983 I'm a little surprised about this, the intention was to just move the files to the Regarding #1765, the long term direction is to be able to do these customizations in C# code in the app host, instead of having to fall back to |
@mip1983 I just did a quick experiment locally where I took the aspire starter app, ran You might consider running with
If we can't find the file, we log a message saying we are generating the infrastructure again from the manifest - I wonder if that's what is happening here? |
I've tried it running azd deploy locally with debug and my domain binding remains. I can see in the debug output:
Which looks correct. However, when I try it from Azure DevOps, the domain binding is removed again, the output on the Azure DevOps console is:
yaml files are checked in, I've tried copy to output to see if that makes a difference, but no luck. |
Looking at the manifest path where it's not picked up the file running the DevOps pipeline, it looks a bit odd with the different slash directions, so I wondered if it was working locally on windows 11, but having trouble on the build agent which is ubuntu. I've just tried updating my Azure DevOps build pipeline to use 'windows_latest' rather than 'ubuntu_latest', and that seems to work, my app has deployed without losing the custom domain binding set in my yaml file. Hopefully that helps you track this down, seems like a linux path issue. |
Thanks @vhvb1989, I'll give that a try. Do you know if the problem with it not finding the manifest on the linux build agent has been resolved as well? Still using a windows agent at the moment. |
/unresolve Hi @vhvb1989, I've been running with 'azd config set alpha.aca.persistDomains on' configured in my build pipeline for a little while and it's generally worked until now. Just did a build/release just now, one environment was fine but on production it took out the domain name binding for one of the container apps (certificate was still in place on the container apps environment and the binding was still there on the other container app). Both are using a wildcard certificate uploaded to the container apps environment, both are using 'A' records and the domain names validate in the UI. |
Still an issue :( |
Marking this a complete for persisting the custom domains. We can use #3891 for tracking the CI/CD pipeline path issue. |
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.
The text was updated successfully, but these errors were encountered: