<PackageReference Include="Azure.Core" Version="1.53.0" />

Azure.Identity.ConfigurationExtensions

public static class ConfigurationExtensions
Provides extension methods for IConfiguration interface.
namespace Azure.Identity { public static class ConfigurationExtensions { public static T GetAzureClientSettings<T>(this IConfiguration configuration, string sectionName) where T : ClientSettings, new; public static IClientBuilder AddAzureClient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TClient, TSettings>(this IHostApplicationBuilder host, string sectionName) where TClient : class where TSettings : ClientSettings, new; public static IClientBuilder AddAzureClient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TClient, TSettings>(this IHostApplicationBuilder host, string sectionName, Action<TSettings> configureSettings) where TClient : class where TSettings : ClientSettings, new; public static IClientBuilder AddKeyedAzureClient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TClient, TSettings>(this IHostApplicationBuilder host, string key, string sectionName) where TClient : class where TSettings : ClientSettings, new; public static IClientBuilder AddKeyedAzureClient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TClient, TSettings>(this IHostApplicationBuilder host, string key, string sectionName, Action<TSettings> configureSettings) where TClient : class where TSettings : ClientSettings, new; public static T WithAzureCredential<T>(this T settings) where T : ClientSettings; public static IClientBuilder WithAzureCredential(this IClientBuilder clientBuilder); } }