sparse-intern-71089
03/04/2021, 4:38 PMripe-russia-4239
03/04/2021, 4:49 PMancient-megabyte-79588
03/04/2021, 4:58 PMimport * as documentDb from "@pulumi/azure-native/documentdb/v20210301preview";
<snip out most of creating cosmos db account>
var dbAccount = new documentDb.DatabaseAccount();
const resp:pulumi.Output<documentDb.ListDatabaseAccountConnectionStringsResult> = pulumi
.all([dbAccount.name, resourceGroup.name])
.apply(([cosmosdbAccountName, resourceGroupName]) => documentDb.listDatabaseAccountConnectionStrings({
    accountName: cosmosdbAccountName,
    resourceGroupName: resourceGroupName,
}));
this.cosmosDbPrimaryConnectionString = resp.apply(r => r.connectionStrings![0].connectionString);
this.cosmosDbPrimaryReadOnlyConnectionString =resp.apply(r => r.connectionStrings![2].connectionString);ancient-megabyte-79588
03/04/2021, 4:59 PMresp , this.cosmosDbPrimaryConnectionString, this.cosmosDbPrimaryReadOnlyConnectionString are all pulumi.Output<T> that I can use later on to retrieve and use the actual values.ripe-russia-4239
03/04/2021, 5:07 PMweb namespace obviously map to this, so I’ve gone ahead with a pure-Node DNS lookupripe-russia-4239
03/04/2021, 5:09 PMimport { promises as dnsLookup } from "dns";
const aRecords = pulumi.interpolate`${functionAppName}.<http://azurewebsites.net|azurewebsites.net>`
  .apply(
     async d => (await dnsLookup.resolve4(d))
       .map(ipv4Address => ({ ipv4Address })));
const a = new dns.RecordSet(customHostname, {
  recordType: "A",
  resourceGroupName: "rg-dns",
  relativeRecordSetName: "@",
  zoneName: zone.name,
  aRecords
});ancient-megabyte-79588
03/04/2021, 5:16 PMripe-russia-4239
03/04/2021, 7:59 PMRecordSet from @pulumi/azure-native/network/v20180501 — beware the versionless RecordSet resource and issue #583…