Setup & Installation
What This Skill Does
Azure Identity library for Java handles authentication between Java applications and Azure services using Microsoft Entra ID. It provides credential types for every deployment context, from local development with `az login` to production managed identities and service principals.
Using `DefaultAzureCredential` removes the need to write environment-specific auth logic, since the same code works with Azure CLI locally, managed identity in production, and environment variables in CI without modification.
When to use it
- Authenticating a Spring Boot app to Azure Key Vault using managed identity on App Service
- Switching between Azure CLI credentials locally and managed identity in production without code changes
- Configuring a CI/CD pipeline to authenticate to Azure Container Registry via environment variables
- Setting up workload identity for a Java service running in AKS
- Authenticating a CLI tool to Azure using device code flow on a machine without a browser