This message was deleted.
# general
s
This message was deleted.
l
If you do mutations within an apply you must return a new object and use that.
It looks like you're trying to use apply to mutate the unwrapped settings object that you have access to in the apply. You can't really do this unless capture and use the resulting output.
q
I was thinking that might be the case. What I’m not sure of is how to ‘use’ the new object that is returned
l
At a high level, AppSettings will need to be specified at the time that
appService
is initialized.
You should be able to do something along the lines of (pseudo code):
Copy code
var ai = new AppInsights();
var settings = ai.key.apply(
... create your app settings here
)
var as = new AppService(... { settings })
You can use
All
to coordinate multiple values if necessary https://www.pulumi.com/docs/intro/concepts/programming-model/#all
q
You know. I was stuck in thinking the other way around, but you got me sorted. Thanks!
partypus 1
@lemon-agent-27707 , worked like a charm. You da man
🏎️ 1