https://pulumi.com logo
#dotnet
Title
# dotnet
a

average-spoon-16995

03/18/2021, 8:14 AM
Hi guys! When adding this property to my ManagedCluster I get the following error message.
Copy code
Identity = new AzureNative.ContainerService.Inputs.ManagedClusterIdentityArgs
            {
                Type = AzureNative.ContainerService.ResourceIdentityType.UserAssigned,
                UserAssignedIdentities = {
                 { $"/subscriptions/(i have my sub id here)/resourcegroups/rg-aks-pulumi-fabio9d58994b/providers/Microsoft.ManagedIdentity/userAssignedIdentities/fabio-Test", "" }
            }
            },
Copy code
error: Code="FailedIdentityOperation" Message="Identity operation for resource '/subscriptions/(here to)/resourceGroups/rg-aks-pulumi-fabio9d58994b/providers/Microsoft.ContainerService/managedClusters/aks-test38e10d3d' failed with error 'Failed to perform resource identity operation. Status: 'BadRequest'. Response: '{\"error\":{\"code\":\"BadRequest\",\"message\":\"Resource name Request does not support null for removing assigned identities.  is invalid for user assigned identity.\"}}'.'."
t

tall-librarian-49374

03/18/2021, 10:34 AM
It should be
Copy code
new Dictionary<string, object>()
instead of
""
a

average-spoon-16995

03/19/2021, 7:59 AM
Thank you!
Just wanted to say it worked!
62 Views