Hi
@tall-librarian-49374. If I define my
PodIdentityProfile
as part of my
ManagedCluster
definition as such:
PodIdentityProfile = new ManagedClusterPodIdentityProfileArgs
{
Enabled = true,
UserAssignedIdentities = new ManagedClusterPodIdentityArgs
{
Identity = new UserAssignedIdentityArgs
{
ClientId = pod_identity.ClientId.Apply(id => id),
ObjectId = pod_identity.PrincipalId.Apply(id => id),
ResourceId = pod_identity.Id.Apply(id => id)
},
Name = "pod-id-tag",
Namespace = "pod-id"
}
},
I get the following error:
azure-native:containerservice:ManagedCluster (auto-aks):
error: Code="PodIdentityAddonUserAssignedIdentitiesNotAllowedInCreation" Message="PodIdentity addon does not support assigning pod identities on creation."
This lines up with the AZ CLI which first has me create the aks cluster with the
--enable-pod-identity
flag, and then use
az aks update
to actually set the pod identity info.
I'm trying to figure out how to set my user identity for my pod identity, but can't seem to figure it out.