<PackageReference Include="Microsoft.Identity.Client" Version="4.82.0" />

Microsoft.Identity.Client.ManagedIdentity.ManagedIdentitySourceResult

Result of managed identity source detection, including the detected source and any failure information from IMDS probes.
public string ImdsV1FailureReason { get; set; }

Gets or sets the failure reason from the IMDSv1 probe, if it failed.

public string ImdsV2FailureReason { get; set; }

Gets or sets the failure reason from the IMDSv2 probe, if it failed.

public ManagedIdentitySource Source { get; }

Gets the detected managed identity source.

Initializes a new instance of the ManagedIdentitySourceResult class.