Deploy container app with a custom domain #10976
Replies: 2 comments 2 replies
-
Nvm, I had to reference the certificate which is registered in my Container Apps Environment. ingress:
external: true
targetPort: {{ targetPortOrDefault 8080 }}
transport: http
allowInsecure: false
customDomains:
- name: myawesomedomain.com
bindingType: SniEnabled
certificateId: {{ .Env.AZURE_MANAGED_CERTIFICATE_ID }} Then, I added a secret AZURE_MANAGED_CERTIFICATE_ID (which holds the resource id of the certificate) to GitHub and voila. |
Beta Was this translation helpful? Give feedback.
-
@davidfowl spent a bunch of time this weekend doing a deep dive into this. The process is as described in the XML doc comments for the method but obviously we can make that nicer with a more elaborate doc with graphics etc. But I also went a bit further to see what the grow-up plan looks like when you want to go from one environment to two and beyond and I hit a few snags. I started this PR to see if I can come up with a viable work around for it: Not much we can do about making it a multi-step process though unfortunately :( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to deploy a container app with Aspire and setup a custom domain for it.
I have a working GitHub Actions workflow.
I've setup the custom domain for the container app manually in the Azure portal with a managed certificate and that works.
Now I want to include the custom domain in the deployment.
I ran
azd infra gen
.In the `myapp.tmpl.yaml' file, I put this ingress:
When I deploy, I get this error:
How do I fix this?
Beta Was this translation helpful? Give feedback.
All reactions