05/21/2021, 11:32 AM
Trying to figure out how to scope this to the correct subscription: The code is inside a ComponentResource which has a provider attached:
const currentKubeconfig = pulumi.all([,[group.location].name]).apply(([clusterName, rgName]) => {
                            return azure.containerservice.listManagedClusterAdminCredentials({
                                resourceGroupName: rgName,
                                resourceName: clusterName,
It seems I can attach a provider to the listManagedClusterAdmin - but how would I get that from the parent ComponentResource?
Right now the workaround is to pass the provider as an argument to the ComponentResource and then set that explicitly, but I would prefer a more elegant solution 😉