Hi. Sorry for the basic question, but what is the ...
# dotnet
e
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
Copy code
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
I admit it’s not very straightforward and have some thoughts to improve it, but that’s a long shot
e
thanks. that makes sense now