I create a CosmosDB/DocumentDB - Account using AzureNextGen:
var databaseAccount=new Pulumi.AzureNextGen.DocumentDB.Latest.DatabaseAccount(accountName,
new Pulumi.AzureNextGen.DocumentDB.Latest.DatabaseAccountArgs
{
// parameters
}
);
To be able to access this database afterwards I need to retrieve either the key
or connection string
of that databaseaccount:
I can build the first part of the connection string (the endpoint) via databaseAccount.DocumentEndpoint.Apply(q => "AccountEndpoint=" + q)
but I am stuck getting the more crucial part, the key.
How can this be achieved?