1 write to ManagedIdentity
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
988
ManagedIdentity
= identity.Resource
10 references to ManagedIdentity
Aspire.Hosting.Azure.EntraId (9)
EntraIdApplicationResource.cs (9)
394
if (credential.
ManagedIdentity
is { } explicitIdentity)
1102
internal bool UsesConsumerIdentity => ManagedIdentityClientId is null &&
ManagedIdentity
is null && ComputeTarget is null;
1105
internal bool IsResourceBacked =>
ManagedIdentity
is not null || ComputeTarget is not null || UsesConsumerIdentity;
1119
if (
ManagedIdentity
is not null && !ReferenceEquals(consumerIdentity,
ManagedIdentity
))
1122
$"Resource '{consumer.Name}' references Entra ID application '{application.Name}', which trusts managed identity '{
ManagedIdentity
.Name}', " +
1137
return (credential.
ManagedIdentity
?? GetConsumerIdentity(consumer))!.ClientId;
1145
=> credential.
ManagedIdentity
is not null || GetConsumerIdentity(consumer) is not null ? ClientId : null;
1175
if (
ManagedIdentity
is { } identity)
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdPolyglotTests.cs (1)
233
c => Assert.Same(identity.Resource, Assert.IsType<EntraIdFederatedIdentityCredential>(c).
ManagedIdentity
));