ripe-russia-4239
03/04/2021, 4:38 PMA
record for an apex domain custom hostname. The IP address is displayed in the Azure Portal next to the custom domain verification ID, but I can’t find it in the equivalent place in the provider APIs. Any ideas?ancient-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);
resp
, 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 lookupimport { 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…