Hello all! Newbie here. Thanks in advance for any ...
# azure
Hello all! Newbie here. Thanks in advance for any help! I'm attempting to set a cname record (via pulumi) with an alias pointing to an azure CDN endpoint. Setting the CNAME record is no issue:
Copy code
this.cnameRecord = new network.RecordSet(this.baseName, {
            cnameRecord: {
                cname: "<http://domain.io|domain.io>",
            privateZoneName: "<http://domain.io|domain.io>",
            recordType: "CNAME",
            relativeRecordSetName: "recordCNAME",
            resourceGroupName: "<http://domain.io|domain.io>", 
            ttl: 3600,
        }, { parent: this.endpoint });
However, I seem unable to find any way to add an alias here. Prior to assure-native, this seems to have been done with 'targetResourceId: "some.endpoint"'. This doesn't exist in the azure-native RecordSetArgs interface. I'm hoping somebody could point me in the right direction. I've been trying to find some other way of doing it with no success. Thank you so much!
I suspect you are hitting the issue below. Try the linked workaround (use a named version): https://github.com/pulumi/pulumi-azure-native/issues/583#issuecomment-753375218
@tall-librarian-49374 Thank you very much. I'm still working on this, I was away for a couple of weeks. Apologies for not saying thank you earlier.
No worries. By the way, I’ve just merged the fix for this for the next release.
Brilliant! Thank you for the hard work.