docs-aspire
docs-aspire copied to clipboard
[New article]: Custom domain support in .NET Aspire 9.0
Proposed topic or title
Configuring custom domains during deployment to Azure.
Location in table of contents.
No response
Reason for the article
We are considering merging this PR as an experimental API:
https://github.com/dotnet/aspire/pull/6275
This provides the ability to specify configure custom domains when using the new PublishAsAzureAppContainer(...) extension method for container and project resources. However the usage is a multi-step process and requires specific documentation.
The XML doc comments for the ConfigureCustomDomain method provide the background but a detailed walkthrough is required.
Article abstract
Needs to go something like this:
- Explain the scenario (deployment via AZD to ACA).
- Explain the way domain binding in ACA works (probably with links to their docs for background).
- Walkthrough wiring up the ConfigureCustomDomains method and parameters.
- Walkthrough doing the first deployment
- Walkthrough binding the cert to the domain.
- walkthrouh updating the parameter values.
- Walkthrough second deployment
- Discuss CICD considerations.
Relevant searches
No response
Here is what is involved to go from zero to hero with custom domains:
https://www.withaspire.dev/custom-domains-with-aspire/
We should use this as the inspiration for our official docs. @IEvangelist I'm thinking about how we structure these docs. I feel like there are probably 4-5 docs that flow on from one another.
The first one would be the basics of getting ConfigureCustomDomain(...) working and deploying from a local dev box.
The second and third would cover how to hoist that deployment into GitHub Actions or AzDo Pipelines, and the fourth and fifth would be evolving that generated pipeline into a multi-environment pipeline with approval gates etc.
I think if you put it in one doc (like I did with my article above its probably too much to consume).
The other factor is that we've got aspire deploy coming in hot. In fact I was able to trigger a deployment with custom domains yesterday with @captainsafia most recent changes. The downside is that on the aspire deploy side we don't get have pipeline generation functionality like with do with AZD.
Could you also cover certificate binding using Azure KeyVault? Not sure if it’s already supported or not.
It isn't covered with ConfigureCustomDomain(...) today but we could potentially look at supporting it for BYO cert scenarios.