https://pulumi.com logo
#dotnet
Title
# dotnet
m

magnificent-television-29869

03/16/2021, 2:02 PM
and so Im at it again,
Copy code
azure-native:cdn:CustomDomain (abc-de.fgh.ijk.lm):
    error: Preview failed: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Property 'CustomDomainEntityKey.CustomDomainName' cannot be set to 'abc-de.fgh.ijk.lm'
the code I am running is
Copy code
return new CustomDomain(fqdn, new CustomDomainArgs()
        {
            EndpointName = cdnEndpoint.Name,
            ProfileName = cdnProfile.Name,
            HostName = fqdn,
            ResourceGroupName = resourceGroup.Name,
            CustomDomainName = fqdn
        });
What am I doing wrong ?
b

brave-planet-10645

03/17/2021, 11:48 AM
From the docs, it looks like you need the name of the customer domain, rather than the actual custom domain. https://www.pulumi.com/docs/reference/pkg/azure-native/cdn/customdomain/#customdomainname_csharp
2 Views