late-airplane-27955
10/23/2024, 6:41 PMlate-airplane-27955
10/23/2024, 7:35 PMvar lookupManagedCluster = GetManagedCluster.Invoke(new GetManagedClusterInvokeArgs
{
ResourceGroupName = rgName,
ResourceName = cluster.Name
});
var kubernetesIdentityNetworkRoleAssignment = new RoleAssignment("kubernetesIdentityNetworkRoleAssignment", new RoleAssignmentArgs
{
PrincipalId = lookupManagedCluster.Apply(c => c.Identity.PrincipalId),
PrincipalType = PrincipalType.ServicePrincipal,
// "network contributor"
RoleDefinitionId = C.AzureNetworkContributorRoleId,
// Cluster needs access to network in order to provision extra load balancers
Scope = $"/subscriptions/{currentSubscription}/resourceGroups/{networkResourceGroup}",
});
but the PrincipalId is always null - that could be a bug in the containerservice thing I guess. Hm. Tricky this.full-hydrogen-5950
10/24/2024, 6:22 AMlate-airplane-27955
10/24/2024, 6:34 AMfull-hydrogen-5950
10/24/2024, 6:35 AMlate-airplane-27955
10/24/2024, 6:39 AM