Hi there, how can I enable HTTPS on Azure CDN, usi...
# azure
c
Hi there, how can I enable HTTPS on Azure CDN, using an Azure Managed certificate? Pulumi AI suggests using
CustomDomainHttpsParameters
from Pulumi.AzureNative.Cdn, but this doesn't seem to be a real thing in the SDK 😁
Ended up using
EndpointCustomDomain
from Azure Classic.
Copy code
var customDomain = new Pulumi.Azure.Cdn.EndpointCustomDomain(
                    // Name + 7 random chars can be max 24 
                    $"frontend-domain", new()
                    {
                        CdnEndpointId = endpoint.Id,
                        HostName = customDomainString,
                        CdnManagedHttps = new EndpointCustomDomainCdnManagedHttpsArgs()
                        {
                            ProtocolType = "ServerNameIndication",
                            CertificateType = "Dedicated",
                        }
                    },
                    new CustomResourceOptions()
                    {
                        DependsOn = dnsRecord
                    });