I am trying to create network.RecordSet (public) a...
# azure
i
I am trying to create network.RecordSet (public) and I can’t make, it throws this error:
Copy code
azure-nextgen:network/latest:RecordSet (records):
    error: Code="ParentResourceNotFound" Message="Can not perform requested operation on nested resource. Parent resource '<http://test.io|test.io>' not found."
Copy code
export 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 }
);
any ideas what I am doing wrong here?
Copy code
* Describes a DNS record set (a collection of DNS records with the same name and type) in a Private DNS zone.
but from
Copy code
new azure.dns.ARecord('elastic', {
  zoneName: zone.name,
  resourceGroupName: config.resourceGroup.name,
  ttl: 300,
  records: ['1.1.1.1']
});
it works
t
It looks like the
RecordSet
resource is mapped to the Private DNS zone’s record set, which isn’t what you want
Could you create an issue for this?
As a workaround, try using
v20180501.RecordSet
i
thanks @tall-librarian-49374
t