This message was deleted.
# dotnet
s
This message was deleted.
b
No, it just makes a call to Azure, so as long as you're passing in the right zone name and the resource group name that it exists in you should be fine. Can you share some code please?
m
Copy code
private RecordSet createCnameRecord(string fqdn, Output<string> cdnEndpointUrl, string resourceGroup)
    {
        var domainParts = fqdn.Split('.');
        var hostpart = domainParts.FirstOrDefault();
        var domainPart = string.Join(".", domainParts.Skip(1));

        Console.WriteLine("HostPart: {0}", hostpart);
        Console.WriteLine("DomainPart: {0}", domainPart);
        
        return new RecordSet(hostpart, new RecordSetArgs
        {
            CnameRecord = new CnameRecordArgs
            {
                Cname = hostpart,
            },
            RecordType = "CNAME",
            RelativeRecordSetName = domainPart,
            ResourceGroupName = resourceGroup,
            Ttl = 3600,
        });
    }
I simply created a method, to easily reuse the code
t
Try using
Pulumi.AzureNative.Network.V20180501
m
okay, I’ll just read the issue first
but thanks
my Zone is not private, does that matter ?
Hey thank you, that actually ran through without error, now I need to see if It actually did what I need