sparse-intern-71089
03/27/2022, 12:18 AMstraight-intern-77892
03/27/2022, 3:10 PMmillions-journalist-34868
03/27/2022, 5:23 PMvar secrets = args.Secrets.Apply(secrets =>
{
return secrets
.Select(secret => new Secret(secret.Name, new SecretArgs
{
SecretName = secret.Name,
VaultName = args.KeyVaultName,
Properties = new SecretPropertiesArgs
{
Value = secret.Value
},
ResourceGroupName = args.ResourceGroupName
}))
.ToList();
});
Not sure that is the best way to do but at least that compiles.tall-librarian-49374
03/27/2022, 6:44 PMmillions-journalist-34868
03/27/2022, 8:03 PMtall-librarian-49374
03/27/2022, 8:33 PMDictionary<string, Output<x>>
. This way you can know the number of entries in the constructor and create the right set of resources, while passing outputs in their properties.millions-journalist-34868
03/27/2022, 8:39 PM