stocky-butcher-62635
04/12/2022, 12:33 PM// Make the database conneciotn string and store it in the key vault.
Output<string> cs = administratorLoginPassword.Apply(z => $"Server={sqlServer.FullyQualifiedDomainName}; Database={database.Name}, uid=rwb, pwd={z}");
KeyVault.Secret s = new KeyVault.Secret($"{PulumiProject}-{ae}-key-vault-secret", new KeyVault.SecretArgs()
{
ResourceGroupName = resourceGroup.Name,
VaultName = v.Name,
SecretName = "ConnectionString",
Properties = new KeyVault.Inputs.SecretPropertiesArgs() { Value = cs }
});
But the value is coming out as junk
Server=Calling [ToString] on an [Output<T>] is not supported.
To get the value of an Output<T> as an Output<string> consider:
1. o.Apply(v => $"prefix{v}suffix")
2. Output.Format($"prefix{hostname}suffix");
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of Pulumi.; Database=Calling [ToString] on an [Output<T>] is not supported.
To get the value of an Output<T> as an Output<string> consider:
1. o.Apply(v => $"prefix{v}suffix")
2. Output.Format($"prefix{hostname}suffix");
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of Pulumi., uid=rwb, pwd=Sql-Server-Admin-Password
witty-candle-66007
04/12/2022, 12:58 PMbillowy-army-68599
04/12/2022, 1:58 PM