I dont think `.get` works in the TS azure-native p...
# azure
p
I dont think
.get
works in the TS azure-native plugin for Outputs… /thread
I have the following code
Copy code
const lbId = pulumi.interpolate`${nrgId}/providers/Microsoft.Network/loadBalancers/kubernetes-internal` <- Output<string>
        const lbId2 = 'redacted' <- string
        lbId.apply((id) => console.log(id === lbId2)) <-- always outputs true
        const lb = azure.network.LoadBalancer.get(name, lbId, opts) <- causes panic
        const lb2 = azure.network.LoadBalancer.get('thanos-receiver-2', lbId2, opts) <- works
if I turn on debug logs the panicing one has this log…
Copy code
pulumi:pulumi:Stack operationsv2-azure-singleton running debug: ReadResource RPC prepared: id=[object Object], t=azure-native:network:LoadBalancer, name=thanos-receiver
the working one has…
Copy code
pulumi:pulumi:Stack operationsv2-azure-singleton running debug: ReadResource RPC prepared: id=<redacted, but is correct>, t=azure-native:network:LoadBalancer, name=thanos-receiver-2
this leads me to believe that the output isnt being resolved, am I doing anything wrong here?
panic logs:
Copy code
panic: fatal: An assertion has failed

goroutine 1253 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)>
	/private/tmp/pulumi-20211014-6711-3jtvpl/sdk/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)>
	/private/tmp/pulumi-20211014-6711-3jtvpl/sdk/go/common/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin.(*provider).Read|github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin.(*provider).Read>(0x14000a94180, {0x14002e5b420, 0x70}, {0x0, 0x0}, 0x0, 0x14004fab530)
	/private/tmp/pulumi-20211014-6711-3jtvpl/sdk/go/common/resource/plugin/provider_plugin.go:807 +0xb78
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*ReadStep).Apply(0x14004fab5f0|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*ReadStep).Apply(0x14004fab5f0>, 0x1)
	/private/tmp/pulumi-20211014-6711-3jtvpl/pkg/resource/deploy/step.go:637 +0xdc
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeStep(0x140019ae000|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeStep(0x140019ae000>, 0x23, {0x1027d0c20, 0x14004fab5f0})
	/private/tmp/pulumi-20211014-6711-3jtvpl/pkg/resource/deploy/step_executor.go:271 +0x1a8
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeChain(0x140019ae000|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeChain(0x140019ae000>, 0x23, {0x14004b93f80, 0x1, 0x1})
	/private/tmp/pulumi-20211014-6711-3jtvpl/pkg/resource/deploy/step_executor.go:221 +0xb4
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker.func1(0x140019ae000|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker.func1(0x140019ae000>, 0x23, 0x140042c0300)
	/private/tmp/pulumi-20211014-6711-3jtvpl/pkg/resource/deploy/step_executor.go:377 +0xa8
created by <http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker>
	/private/tmp/pulumi-20211014-6711-3jtvpl/pkg/resource/deploy/step_executor.go:374 +0x22c