fresh-lifeguard-12682
10/02/2020, 8:01 PMconst customDomain = new CDNCustomDomainResource("cdn-custom-domain", {
resourceGroupName: resourceGroup.name,
// Ensure that there is a CNAME record for demo <http://pointing.pulumi.com|pointing.pulumi.com> to <http://demopulumi.azureedge.net|demopulumi.azureedge.net>.
// You would do that in your domain registrar's portal.
customDomainHostName: "<http://demo.pulumi.com|demo.pulumi.com>",
profileName: cdn.name,
endpointName: endpoint.name,
// This will enable HTTPS through Azure's one-click automated certificate deployment.
// The certificate is fully managed by Azure from provisioning to automatic renewal
// at no additional cost to you.
httpsEnabled: true,
}, { parent: endpoint });