This message was deleted.
# azure
s
This message was deleted.
t
You need to wrap it all into interpolate:
Copy code
pulumi.interpolate`https://${containerAppName}.${managedEnvironment.defaultDomain}`
c
So, that worked, any idea why this might not work when passing an output from a resource into a module as a parameter and then use that in the module?
as in...
Copy code
...
export function scanApp(resourceGroupName: Output<string>,...): {

...
new appservice.Plan(appServicePlanName, {
      resourceGroupName: resourceGroupName,
}
That doesn't work. I already tried `pulumi.interpolate`${resourceGroupName}`` but that just throws the same error.
t
I suspect you call
toString
on an output somewhere but it's hard to diagnose without the full code. Your snippet looks perfectly fine.
c
I am doing this here later:
Copy code
const appName = pulumi.interpolate`argos-${resourceGroupName}`;
    const prefix = `${appName}-${stack}`;
I then use
prefix
as a property for another resource as well. Does that not work?
t
const prefix = `${appName}-${stack}`;
This is your problem. It has to be an interpolate again.
And you won't be able to use it for a plain string value like resource name e.g.
new Resource(prefix + "foo", ...
c
yeah, I guess that's fine now. When we started this specific stack over 3 years ago we didn't think too far ahead. It is what it is now 🙂