This message was deleted.
# azure
s
This message was deleted.
m
I have never done that, but I think you could have a look at WebAppHostNameBinding and Certificate resources. I am interested in seeing what the final code looks like when you will succeed making this work
l
I've found this tutorial (python), which is almost on-point. But it references types that don't exist in the C#/.NET azure-native library, e.g.
web.CustomDomain
. So I'm not sure how to interpret that. https://python.helpful.codes/tutorials/pulumi/Setting-Up-Azure-App-Service-with-Custom-Domain-with-Pulumi/
m
It's because this tutorial was using Azure Native v1 (https://www.pulumi.com/registry/packages/azure-native/api-docs/cdn/customdomain/), some types have been replaced in v2
l
That's what I figured, but I didn't see "CustomDomain" under "web" there either (i.e. under "web" in the azure-native v1 docs). Note that there are multiple CustomDomain types, one for "appplatform", another for "cdn", etc.
Further research looks like what's described here is how to do this: https://github.com/pulumi/pulumi-azure-native/issues/578 I don't yet know if the circular dependency problem still exists or not. But if I'm reading this correctly, two things need to happen: 1. Create a Web.Certificate to obtain an Azure-managed certificate 2. Create a Web.WebAppHostNameBinding which references the certificates thumbprint Can anyone confirm that I'm interpreting this correctly? Also, if anyone knows, does the circular dependency issue still exist?