This message was deleted.
# dotnet
s
This message was deleted.
t
You need to use `.Apply()`:
Copy code
app.Id.Appply(id => 
{
  var b = GetDiagnosticCategories(...id...));
  ...
}
m
Thanks @tall-librarian-49374. Am I right in thinking that the Apply will return another Output<> containing the logs types? I can see that would let me iterate through them but s there a way to print them out to the console just so I can see what options are available?
t
Yes, it’s outputs all the way. Once you get an output, you have to do everything with
Apply
So, your printing has to be inside
Apply
too. Alternatively, if you have e.g.
Output<string>
, you can also save it to stack outputs and they will be printed after
pulumi up
is done.
m
Makes sense, thanks!