Setting the file. One moment.
Chapter 30 · Entra App Registration
Subchapter 30.9
references/sdk/azure-identity-java.mdMarkdown1 KBView on GitHub
Condensed from azure-identity-java. Full patterns (workload identity, certificate auth, device code, sovereign clouds) in the azure-identity-java plugin skill if installed.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.15.0</version>
</dependency>Auth:
DefaultAzureCredentialis for local development. See auth-best-practices.md for production patterns.
import com.azure.identity.DefaultAzureCredentialBuilder;
var credential = new DefaultAzureCredentialBuilder().build();az login before running your app