You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this failed with errors and a deprecation warning:// verification warning: "record": [DEPRECATED] This field has been replaced by `records`// error [snip] has a problem: record.0: expected object, got string// error [snip] has a problem: record.1: expected object, got string// error [snip] has a problem: record.2: expected object, got string// error [snip] has a problem: record.3: expected object, got stringnewazure.dns.NsRecord("z1-dev1-ns-record",{name: "z1",resourceGroupName: rootZone.resourceGroupName,zoneName: rootZone.name,records: dnsZone.nameServers,ttl: 3600});
This did work, but it is cumbersome and marked as deprecated:
// this did work but get the deprecation warning : // verification warning: "record": [DEPRECATED] This field has been replaced by `records`newazure.dns.NsRecord("z1-dev1-ns-record",{name: "z1",resourceGroupName: rootZone.resourceGroupName,zoneName: rootZone.name,record: pulumi.output(dnsZone.nameServers).apply(x=>x.map(y=>({nsdname: y}))),ttl: 3600});
The text was updated successfully, but these errors were encountered:
When trying to create an NsRecord entry for a DNS Zone in an existing Zone I hit some snags.
The following (and variations) didn't work. Note that I'm using the
records
field notrecord
yet I receive a verification error forrecord
.The type definition for
NsRecordArgs.records
is this, but it doesn't seem to be correct (object expected):This did work, but it is cumbersome and marked as deprecated:
The text was updated successfully, but these errors were encountered: