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