ManagedIdentityApplication Class

Definition

Class to be used for managed identity applications (on Azure resources like App Services, Virtual Machines, Azure Arc, Service Fabric and Cloud Shell).

public sealed class ManagedIdentityApplication : Microsoft.Identity.Client.ApplicationBase, Microsoft.Identity.Client.IManagedIdentityApplication
type ManagedIdentityApplication = class
    inherit ApplicationBase
    interface IManagedIdentityApplication
    interface IApplicationBase
Public NotInheritable Class ManagedIdentityApplication
Inherits ApplicationBase
Implements IManagedIdentityApplication
Inheritance
ManagedIdentityApplication
Implements

Remarks

Managed identity can be enabled on Azure resources as a system assigned managed identity or a user assigned managed identity.

Methods

Name Description
AcquireTokenForManagedIdentity(String)

Acquires token for a managed identity configured on Azure resource. See https://aka.ms/msal-net-managed-identity.

GetManagedIdentityCapabilitiesAsync(CancellationToken)

Detects the managed identity source available on the host and the strongest mTLS binding the host can produce. Useful for credential chains (such as DefaultAzureCredential) to decide whether managed identity is available and what binding strength to expect.

GetManagedIdentitySource()
Obsolete.

Detects and returns the managed identity source available on the environment.

Applies to