https://pulumi.com logo
#general
Title
# general
g

gray-school-80301

08/23/2019, 2:11 PM
Hi, how do you figure out the name of an existing Kubernetes cluster in Azure if you have setup the cluster in a different Pulumi project without specifying an unique name so that Pulumi will add a random suffix to it? The function
getKubernetesCluster
expect the unique name but there is no function for the ResourceGroup to get a list of the existing clusters like
az resource list -g name
.
c

cool-egg-852

08/23/2019, 2:42 PM
If you can, use a StackReference. Then you won’t need to “get it”
👍 1
g

gray-school-80301

08/23/2019, 3:13 PM
It’s actually part of a separate Pulumi project, so not accessible as a StackReference.
c

cool-egg-852

08/23/2019, 3:39 PM
It doesn’t matter if it’s part of a separate project.
new pulumi.StackReference('YourOrg/YourProject/YourStack');
👍 1
g

gray-school-80301

08/23/2019, 4:13 PM
thanks!