Hi, I'm trying to create a roleAssignment but prev...
# azure
e
Hi, I'm trying to create a roleAssignment but preview keeps telling me
missing required property 'properties.principalId'
, is it because i'm using apply?
Copy code
using AzureAuth = Pulumi.AzureNextGen.Authorization.Latest;

            new AzureAuth.RoleAssignment(
                $"NetworkContributor",
                new AzureAuth.RoleAssignmentArgs
                {
                    Scope = _cluster.NodeResourceGroup!,
                    RoleAssignmentName = "Network Contributor",
                    Properties = new AzureAuth.Inputs.RoleAssignmentPropertiesArgs
                    {
                        PrincipalId = _cluster.Identity.Apply(identity => identity!.PrincipalId),
                        RoleDefinitionId = "",
                    },
                });
t
I believe that’s because
Latest
doesn’t have that property.
Latest
refers to the lastest stable version which is very old for this resource.
Try
V20200401Preview
Oh, wait, I may have misread the error
e
Ah thanks, it looks like it's related to that issue