https://pulumi.com logo
Title
g

gray-nail-14734

03/14/2021, 4:00 PM
Hi there - I've been looking at Pulumi for a while and finally have an opportunity to use it for a meaningful project. However, I'm stuck and am chalking it up to being new and hoping someone help show me the light. I'm using
Azure-Native
and trying to create an AKS cluster. All is good, until I try to set up my
PodIdentityProfile
. In the AZ CLI, PodIdentity is set up in a separate step, and the Pulumi Azure-Native resource seems to follow the same paradigm. However, I can't seem to figure out how to set up my
UserAssignedIdentity
after my
ManagedCluster
is created. I've tried
GetManagedCluster
, but the profile is an
ImmutableArray
. I've tried creating a new resource (using the same name and resource group) but get a conflict. Is there a recommended way to perform updates on existing resources? I'm looking through the Pulumi docs and don't really see this. I see how to create and destroy, but update isn't called out in many places. BTW, I'm using C# in my scripts. Thank you in advance for any guidance here!
b

better-shampoo-48884

03/14/2021, 5:04 PM
Unfortunately I don't think I can help you, but it might help a bit to mention this in #azure as there might be more azure-specific attention there. There is an example with PodIdentity on the docs here: https://www.pulumi.com/docs/reference/pkg/azure-native/containerservice/managedcluster/
g

gray-nail-14734

03/14/2021, 5:36 PM
Thank you, @better-shampoo-48884 - I'll try the #azure channel. And that example does show how to enable it, but there isn't any second step on actually associating the PodIdentity with the cluster. I'll keep trying -- thank you!!
b

better-shampoo-48884

03/14/2021, 5:37 PM