8 references to GetManagedIdentityRoleAssignments
Aspire.Hosting.Azure.EntraId (2)
EntraIdApplicationResource.cs (1)
406_ = GetManagedIdentityRoleAssignments(requireIdentity: true);
Provisioning\EntraIdApiProvisioning.cs (1)
202foreach (var (identity, role) in resource.GetManagedIdentityRoleAssignments(requireIdentity: false))
Aspire.Hosting.Azure.EntraId.Tests (6)
EntraIdAppRoleAssignmentTests.cs (5)
39Assert.Equal(3, api.Resource.GetManagedIdentityRoleAssignments(requireIdentity: true).Count); 117Assert.Same(role, Assert.Single(api.Resource.GetManagedIdentityRoleAssignments(requireIdentity: true)).Role); 154var assignment = Assert.Single(api.Resource.GetManagedIdentityRoleAssignments(requireIdentity: true)); 170Assert.Empty(api.Resource.GetManagedIdentityRoleAssignments(requireIdentity: true)); 239Assert.Same(identityResource, Assert.Single(api.Resource.GetManagedIdentityRoleAssignments(requireIdentity: true)).Identity);
EntraIdPolyglotTests.cs (1)
616var assignment = Assert.Single(api.Resource.GetManagedIdentityRoleAssignments(requireIdentity: true));