https://pulumi.com logo
Title
e

early-sugar-1496

11/13/2020, 12:39 PM
Hi. Sorry for the basic question, but what is the way to call a function related to a resource? For example, getting the credentials for an aks cluster
var aksCluster = new AzureContainerService.ManagedCluster(
            "test",
            new AzureContainerService.ManagedClusterArgs{});

        var kubeConfig = AzureContainerService.ListManagedClusterAdminCredentials.InvokeAsync(
            new AzureContainerService.ListManagedClusterAdminCredentialsArgs
            {
                ResourceGroupName = resourceGroup.Name,
                ResourceName = aksCluster.Name,
            }).Result.Kubeconfigs;
Doesn't compile, with an error on both
ResourceGroupName
and
ResourceName
,
Cannot convert source type 'Pulumi.Output<string>' to target type 'string'
I'm pretty sure I've got a misunderstanding of properly using outputs đŸ¤” thanks
t

tall-librarian-49374

11/13/2020, 1:02 PM
I admit it’s not very straightforward and have some thoughts to improve it, but that’s a long shot
e

early-sugar-1496

11/13/2020, 1:20 PM
thanks. that makes sense now