This message was deleted.
# dotnet
s
This message was deleted.
b
what error are you getting?
c
Well it says "Cannot implicitly convert type 'Pulumi.Output<string>' to 'string'"
But should I
ToString()
it to get the string out of the Output? Tried to do
Apply(s => s)
but that didn't work.
b
Apply
is the way to do it, you’re doing a
Get
so you need to do your
Get
inside the apply
c
Lol, looks like that post is for me, thanks!:
Hmm, so I can't reference the resource group once? I need to do a new get every time?
b
you should be able to reference it once. have you defined a resource group to create in your code?
c
Yes. I defined the resource group in another stack. And now I would like to reference it for other infra to go into the same rg from another stack 🙂
And I probably mean project when I say stack 🤔 Still a bit confused about the exact terminology.
b
ah got it, you should be able to do that. I think you want this though: https://www.pulumi.com/registry/packages/azure-native/api-docs/resources/getresourcegroup/
you can use
getResourceGroupOutput
, not sure of the dotnet naming
rather than resourceGroup.get
👍 1
c
Ah, ok. Thanks. And what's the difference?
b
ah my mistake, you’re using azure native. the
get
method is the way
1
sorry about that
c
Ah, ok 🙂 Haha, no problem. Thanks again!