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
Use with care
51/ 100 5-point scale 2.6 / 5
1 2 3 4 5 6
1Trust15 / 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.

2Reliability7 / 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.

3Adaptability11 / 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.

4Convention9 / 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.

5Effectiveness6 / 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.

6Verifiability3 / 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 does this skill do, and when should you 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.

What are this skill's strengths and limitations?

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 do you install this skill?

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 do you use this skill?

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 Identity for .NET

Guides .NET applications in authenticating Azure SDK clients with Microsoft Entra ID.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

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

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Rust

Configure Microsoft Entra ID authentication for Azure SDK clients written in Rust.

Dev & Engineering ✓ Microsoft · Official

Microsoft Entra App Registration

A practical guide to Entra app registration and OAuth integration.

Dev & Engineering ✓ Microsoft · Official

Azure AI Persistent Agents for Java

Guides Java developers through building and managing Azure AI agents with persistent threads, messages, runs, and tools.

Dev & Engineering ✓ Microsoft · Official

Azure Bot Service ARM SDK for .NET

Helps .NET developers provision Azure Bots and configure their channels through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Log Ingestion for Java

Guides Java applications in sending structured custom logs to Azure Monitor through DCRs.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage TypeScript Skill

Build Azure Queue Storage workers that send, receive, inspect, and manage messages in TypeScript or JavaScript.

Dev & Engineering ✓ Microsoft · Official

Azure App Configuration for Java

Guides Java apps in centralizing settings, feature flags, and release snapshots.

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.

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

Fabric Capacity Manager for .NET

Manage Microsoft Fabric capacities programmatically through Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Bot Service Python Manager

Create, manage, and configure Azure Bot Service resources and channels from Python.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

Dev & Engineering ✓ Microsoft · Official

Microsoft Foundry Python Projects Skill

Gives coding agents dependable patterns for building Foundry AI applications with the Azure AI Projects Python SDK.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Rust

Guides Rust developers in sending and receiving Azure Service Bus messages through queues, topics, and subscriptions.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Java

A practical Java SDK guide for Azure Web PubSub messaging, groups, permissions, and real-time client access.

Automation & Ops ✓ Microsoft · Official

Azure Deployment Validator

Preflight Azure deployments by checking configuration, infrastructure, permissions, prerequisites, and builds.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Python

Practical Python guidance for reliable Azure Service Bus queues and publish-subscribe messaging.

Related skills