<PackageReference Include="Microsoft.Identity.Client" Version="4.82.1-preview2" />

Microsoft.Identity.Client.ManagedIdentity.ManagedIdentitySource

public enum ManagedIdentitySource
Managed identity sources supported. The library will handle these internally.

The source to acquire token for managed identity is App Service.

The source to acquire token for managed identity is Azure Arc.

The source to acquire token for managed identity is Cloud Shell.

Indicates that the source is defaulted to IMDS since no environment variables are set. This is used to detect the managed identity source.

Imds = 1

The source to acquire token for managed identity is IMDS.

ImdsV2 = 8

The source to acquire token for managed identity is IMDSV2.

The source to acquire token for managed identity is Machine Learning Service.

None = 0

Default.

The source to acquire token for managed identity is Service Fabric.