Dev & Engineering ✓ Microsoft · Official azure-identityjavamicrosoft-entra-idmanaged-identityservice-principaldefaultazurecredentialazure-cli

Azure Identity for Java

Configure secure Microsoft Entra ID authentication for Java applications using Azure SDKs.

FollowSkills review · FSRS-2.0
Not recommended
51/ 100 5-point scale 2.6 / 5
Trust15 / 25 · 3.0/5

The material covers least privilege, managed identity, and environment-variable practices, with no evidence of malware, credential theft, or destructive defaults; however, secret rotation, account-information logging, certificate/PFX password handling, user confirmation, data-flow disclosure, and rollback are underdocumented. A password-like literal also appears in an example, so points are deducted.

Reliability7 / 20 · 1.8/5

Core usage paths are documented and credential-unavailable versus authentication failures are distinguished; however, the installation version 1.15.0 conflicts with 1.18.2 in the reference file, the token-caching explanation does not fully match its examples, and no skill-specific tests or abnormal-input reproductions are provided. Static calibration therefore limits the score.

Adaptability11 / 15 · 3.7/5

The audience, credential types, environment matrix, and trigger phrases are reasonably clear, and Azure China authority-host configuration is included; however, non-fit scenarios, required permissions, version boundaries, and mainland-China network reachability are not established. The actual DefaultAzureCredential chain also depends on external documentation, so points are deducted.

Convention9 / 15 · 3.0/5

The skill has YAML metadata, an MIT license, layered topics, a reference examples file, and a version field; however, its version data conflicts, and there is no changelog, explicit maintenance owner or update path, troubleshooting FAQ, or dependency compatibility matrix.

Effectiveness6 / 15 · 2.0/5

It can directly help Java developers select and write common Azure credential implementations and use them with several Azure clients; however, production use still requires additional permission setup, secret-management guidance, tenant/cloud configuration, and version verification. The examples are not demonstrated as a complete verified project.

Verifiability3 / 10 · 1.5/5

The skill includes an official aka.ms reference, concrete Maven coordinates, and detailed code samples, providing limited auditability; however, this review is static only, and the supplied material shows no skill-specific test suite, CI coverage, or independently reproduced execution. The external reference was not verifiable from the prompt.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Reconcile the azure-identity version so SKILL.md and references.md do not drift.
  • Do not place client secrets, PFX passwords, or tokens in source, logs, or configuration examples; add explicit storage, rotation, and redaction guidance.
  • Before deployment, verify the active credential chain, tenant, cloud environment, least-privilege RBAC, and network reachability of China-region authentication endpoints.
See the full review method →

What it does & when to use it

This skill helps Java developers authenticate Azure SDK clients with Microsoft Entra ID. It recommends DefaultAzureCredential and covers managed identities, service principals, environment variables, Azure CLI, interactive browser login, and device code authentication. It also documents workload identity for AKS, custom credential chains, token caching, sovereign clouds, error handling, and logging. It fits projects that need authentication patterns spanning local development, CI/CD, and Azure-hosted workloads.

Provides the Maven dependency declaration; shows how to build DefaultAzureCredential, ManagedIdentityCredential, EnvironmentCredential, ClientSecretCredential, ClientCertificateCredential, AzureCliCredential, InteractiveBrowserCredential, and DeviceCodeCredential; demonstrates passing credentials to Blob Storage and Key Vault clients; and documents custom chains, AKS workload identity, token caching, sovereign-cloud authority hosts, environment variables, and authentication exceptions.

  1. A Java developer needs one authentication approach that can use local developer credentials and managed identity in production, so they configure DefaultAzureCredential.
  2. An App Service, Functions, or VM application needs system-assigned or user-assigned managed identity authentication, so it uses ManagedIdentityCredential.
  3. A CI/CD pipeline needs service-principal authentication from AZURE_TENANT_ID, AZURE_CLIENT_ID, and secret or certificate variables, so it uses EnvironmentCredential.
  4. An AKS workload needs federated-token authentication through a token file, so it uses WorkloadIdentityCredential.
  5. A desktop application, CLI tool, or headless device needs interactive browser or device-code login, so it selects the corresponding credential.

Pros & cons

Pros
  • Covers authentication scenarios for local development, CI/CD, Azure-hosted applications, and headless devices.
  • Includes copyable Java Builder examples and a credential selection matrix.
  • Clearly recommends DefaultAzureCredential and addresses managed identity and least privilege.
  • Includes certificate authentication, workload identity, sovereign clouds, error handling, and logging.
Limitations
  • Examples specify Azure Identity Java 1.15.0, so compatibility with other versions is not established by the source.
  • No standalone test suite, complete project template, or end-to-end verification results are provided.
  • Several authentication modes require external Azure resources, app registrations, or a configured Azure CLI.
  • The SKILL.md does not specify the complete credential-chain order for every version.

How to install

Install the collection with npx skills add microsoft/skills, then select azure-identity-java in the wizard. Skills are installed into the selected agent directory, such as .github/skills/ for GitHub Copilot. Add the Maven dependency com.azure:azure-identity:1.15.0 to the Java project. The source does not document installation steps for other build tools.

How to use

In an Agent Skills-compatible coding agent, try a prompt such as “Configure DefaultAzureCredential for a Java Azure application” or “Implement managed identity authentication in Java.” Use the resulting examples to select a credential and configure the required tenant, client, certificate, or environment values. The SKILL.md provides no standalone script or test command.

FAQ

Is this suitable for production applications?
It is suitable for generating production-oriented authentication guidance, especially with managed identity; project teams must still validate permissions, app registrations, and Azure resource configuration.
Do I need to hardcode client secrets?
No. The skill recommends environment variables for CI/CD and managed identity for production. Placeholder secrets in examples should not be replaced with real secrets in source code.
Can it support devices without a browser?
Yes. It includes DeviceCodeCredential for headless devices and CLI tools.
Does it support AKS workload identity?
Yes. It provides WorkloadIdentityCredential examples using AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_FEDERATED_TOKEN_FILE.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills