sparse-intern-71089
10/15/2020, 6:49 PMicy-jordan-58549
10/15/2020, 6:50 PMexport const zone = new network.Zone(
'test-io-zone',
{
location: 'Global',
resourceGroupName: config.resourceGroup.name,
zoneName: '<http://test.io|test.io>',
zoneType: 'Public'
},
{ dependsOn: config.resourceGroup }
);
new network.RecordSet(
'records',
{
aRecords: [{ ipv4Address: '1.1.1.1' }],
privateZoneName: zone.name,
recordType: 'A',
relativeRecordSetName: 'recordA',
resourceGroupName: config.resourceGroup.name,
ttl: 3600,
},
{ dependsOn: zone }
);
icy-jordan-58549
10/15/2020, 6:50 PMicy-jordan-58549
10/15/2020, 6:55 PM* Describes a DNS record set (a collection of DNS records with the same name and type) in a Private DNS zone.
icy-jordan-58549
10/15/2020, 7:01 PMnew azure.dns.ARecord('elastic', {
zoneName: zone.name,
resourceGroupName: config.resourceGroup.name,
ttl: 300,
records: ['1.1.1.1']
});
icy-jordan-58549
10/15/2020, 7:01 PMtall-librarian-49374
10/15/2020, 7:22 PMRecordSet
resource is mapped to the Private DNS zone’s record set, which isn’t what you wanttall-librarian-49374
10/15/2020, 7:23 PMtall-librarian-49374
10/15/2020, 7:24 PMv20180501.RecordSet
icy-jordan-58549
10/15/2020, 7:55 PMtall-librarian-49374
10/16/2020, 10:17 AM