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

Azure.Identity.DefaultAzureCredential

Simplifies authentication while developing apps that deploy to Azure by combining credentials used in Azure hosting environments with credentials used in local development. In production, it's better to use something else. See Usage guidance for DefaultAzureCredential. Attempts to authenticate with each of these credentials, in the following order, stopping when one provides a token: EnvironmentCredential WorkloadIdentityCredential ManagedIdentityCredential VisualStudioCredential VisualStudioCodeCredential (enabled by default for SSO with VS Code on supported platforms when Azure.Identity.Broker is installed) AzureCliCredential AzurePowerShellCredential AzureDeveloperCliCredential InteractiveBrowserCredentialBrokerCredential (a broker-enabled instance of InteractiveBrowserCredential that requires Azure.Identity.Broker is installed) Consult the documentation of these credentials for more information on how they attempt authentication.
namespace Azure.Identity { public class DefaultAzureCredential : TokenCredential { public const string DefaultEnvironmentVariableName = "AZURE_TOKEN_CREDENTIALS"; protected DefaultAzureCredential(); public DefaultAzureCredential(bool includeInteractiveCredentials = false); public DefaultAzureCredential(DefaultAzureCredentialOptions options); public DefaultAzureCredential(string configurationEnvironmentVariableName, DefaultAzureCredentialOptions options = null); } }