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