This message was deleted.
# azure
s
This message was deleted.
I guess you should report this upstream as well. Let me know if you need help with it.
m
OK, if the connection module isn't currently able to handle all scenarios, can I use Pulumi to construct an arm template and deploy that? I am not sure how I would go about replacing values in the template with values from a previously created object e.g. the 'gateway_id' parameter in the example above needs to come from a gateway object created earlier in the stack. How can I add their return values to a Template being built as a string and handle their async nature?
t
You would build them with `apply`’s on outputs. The Template accepts inputs, so you can pass the result of `apply`’s to it. I can’t think of an example of that in our repos, unfortunately.
m
OK thanks I'll give it a shot. I see there is also a parameters property. Is that Dictionary<string,string>?
seems to be Dictionary<string, Dictionary<string,string>>
Hi @tall-librarian-49374, can you give me an example of how I use the Apply approach? For example I have
Copy code
var api = new PulumiWeb.Inputs.ApiReferenceArgs
{
    Id = "someprefix/<connectorName>"
}
I have a connector object and I need to extract its Name property and use that to replace <connectorName> in the above. Whatever I try I keep getting Pulumi.Output`1[System.String] appended :)
t
You can do
Output.Format($"someprefix/{connector.Name}")
in this example
Alternatively,
connector.Name.Apply(name => $"someprefix/{name}")
👍 1