Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

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

57/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 2.7k
Last updated
3mo ago
License
MIT
azure-identitytypescriptentra-idmanaged-identity
+3service-principaloauth2azure-sdk

What does this skill do, and when should you use it?

This skill helps TypeScript and JavaScript developers authenticate Azure SDK clients with Microsoft Entra ID. It covers DefaultAzureCredential, managed identities, service principals, interactive sign-in, developer credentials, and custom credential chains. It also documents sovereign cloud authority hosts, bearer-token providers, logging, and credential-handling practices. It fits projects that need to avoid embedded secrets and use different authentication approaches during local development and production deployment.

Shows how to install @azure/identity and the optional @azure/identity-vscode package; configure secret-based or certificate-based service principals, Kubernetes workload identity, and environment variables; create examples using DefaultAzureCredential, ManagedIdentityCredential, ClientSecretCredential, ClientCertificateCredential, InteractiveBrowserCredential, DeviceCodeCredential, and ChainedTokenCredential; use Visual Studio Code, Azure CLI, Azure Developer CLI, and Azure PowerShell credentials; configure Azure Government and Azure China authority hosts; create a bearer-token provider; implement the TokenCredential interface; and enable verbose Azure SDK logging with a custom logger.

Good fit
  • A TypeScript developer needs DefaultAzureCredential to connect an Azure SDK client such as BlobServiceClient during local development.
  • A production service running on Azure needs system-assigned or user-assigned managed identity authentication.
  • A Kubernetes workload must authenticate with Azure through a federated token file.
  • A backend service needs to authenticate as a service principal with a client secret or certificate.
  • An interactive application requires browser-based or device-code sign-in.
  • An application needs a custom fallback chain, such as managed identity first and Azure CLI second.

How do you install this skill?

Before you use it
  • Before adopting the snippets, verify them against the current @azure/identity version, DefaultAzureCredential chain, InteractiveBrowserCredential browser/Node applicability, and WorkloadIdentityCredential configuration.
  • Do not enable verbose logging with real tokens, client secrets, or other credentials; add least-privilege, consent, secret-rotation, and compromise-recovery controls.
  • Validate reachability and enterprise network policy for browser login, Azure endpoints, and external documentation separately.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • Node.js
  • npm
  • @azure/identity
  • @azure/core-auth
  • @azure/logger
  • @azure/identity-vscode
  • @azure/storage-blob

Install the collection with npx skills add microsoft/skills, then select azure-identity-ts in the wizard. The README says skills are installed into the selected agent directory, such as .github/skills/ for GitHub Copilot. The source does not document a standalone installation command for this skill. In the TypeScript project, install @azure/identity; install @azure/identity-vscode only when Visual Studio Code credential support is needed.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Configure DefaultAzureCredential for this TypeScript Blob Storage client and explain the local-development, production-managed-identity, and environment-variable setup.

In a TypeScript project, run npm install @azure/identity. Ask the coding agent, for example: “Configure DefaultAzureCredential for this TypeScript Blob Storage client and explain the local-development, production-managed-identity, and environment-variable setup.” Then provide the required AZURE_TENANT_ID, AZURE_CLIENT_ID, and related settings, or choose the managed-identity, CLI, browser, or other credential pattern shown in the skill.

What are this skill's strengths and limitations?

Pros
  • Covers local development, production hosting, Kubernetes, and interactive authentication scenarios.
  • Provides copyable TypeScript and environment-variable examples.
  • Recommends managed identity for production and explicitly advises against hardcoded credentials.
  • Includes sovereign clouds, bearer-token providers, custom credential chains, and debugging logs.
Limitations
  • The content is primarily configuration guidance and examples; no skill-specific test suite or test results are provided.
  • It does not specify a Node.js version, an @azure/identity version, or a complete runtime compatibility matrix.
  • Tenant configuration, permission grants, and Azure resource authorization are not explained in depth.
  • Certificate paths, tenant IDs, client IDs, and secrets in the examples must be supplied by the adopter.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Azure Identity for TypeScript this page ✓ Microsoft · Official 57 · Use with care ★ 2.7k 3mo ago MIT
Azure Identity for Rust ✓ Microsoft · Official 45 · Not recommended ★ 2.7k 3mo ago MIT
Azure Identity for .NET ✓ Microsoft · Official 50 · Use with care ★ 2.7k 3mo ago MIT
Azure Identity for Python ✓ Microsoft · Official 60 · Recommended ★ 2.7k 3mo ago MIT
Azure Identity for Java ✓ Microsoft · Official 51 · Use with care ★ 2.7k 3mo ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
57/ 100 5-point scale 2.9 / 5
1Trust18 / 25 · 3.6/5

The documentation recommends managed identity, environment variables, appropriately scoped credentials, and avoiding hardcoded secrets; examples use placeholders, with no evidence of credential theft, covert exfiltration, or destructive defaults. Points are deducted because least-privilege permissions, user confirmation, token data flow, rollback, and post-exposure recovery are not specified, and verbose logging could increase sensitive-data exposure risk.

2Reliability8 / 20 · 2.0/5

Installation, environment variables, and multiple credential paths are documented, with some error-handling guidance. Points are deducted for visible inconsistency, including conflicting production recommendations for DefaultAzureCredential versus ManagedIdentityCredential, browser reference material that mixes Node-oriented options, and the absence of skill-specific tests or reproducible validation. Static calibration prevents evidence of runnable key paths from receiving a higher score.

3Adaptability10 / 15 · 3.3/5

The audience and scenarios are reasonably clear: local development, Azure-hosted environments, CI/CD, Kubernetes, browsers, and sovereign clouds, including Azure China. Points are deducted because non-fit boundaries, precise trigger conditions, version compatibility, and mainland-China reachability are not documented; some authentication and documentation flows depend on overseas services.

4Convention9 / 15 · 3.0/5

The information architecture is readable, with a main document and two progressively separated references covering installation, examples, best practices, debugging, and security. MIT licensing, author, and version metadata are present. Points are deducted for missing skill-specific changelog, explicit maintenance and update path, dependency version constraints, FAQ, and systematic troubleshooting guidance.

5Effectiveness7 / 15 · 2.3/5

The skill provides directly reusable TypeScript authentication snippets, environment-variable templates, credential selection guidance, and browser integration examples that address the core configuration task. Points are deducted because the examples were not executed in this review and some recommendations or browser/API details may be outdated or internally inconsistent, requiring manual verification and adjustment.

6Verifiability5 / 10 · 2.5/5

Microsoft Learn and aka.ms references provide some traceability, while repository-level CI, evaluation workflows, and test code provide limited audit context. Points are deducted because the supplied tests do not demonstrate coverage of this skill's key paths, and no skill-specific results or third-party execution evidence are supplied; static review cannot independently reproduce the claims.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a Review evidence[1][2][3][4][5][6][7][8][9][10][11][12]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this skill manage or store Azure secrets for me?
No. It recommends environment variables, managed identity, and other credential classes, and explicitly says not to hardcode credentials. The source does not describe a secret-management feature.
Should local development and production use the same credential?
The skill recommends DefaultAzureCredential for local development and ManagedIdentityCredential or WorkloadIdentityCredential for production. It also shows how AZURE_TOKEN_CREDENTIALS can constrain DefaultAzureCredential.
Is client-secret authentication the only supported option?
No. The skill also covers client certificates, system- and user-assigned managed identities, Kubernetes workload identity, browser login, device code, Azure CLI, Azure Developer CLI, and Azure PowerShell.
Does using this skill require an MCP server?
No. The SKILL.md does not declare an MCP dependency. Its documented requirements are the Azure Identity packages and the relevant project and environment configuration.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Rust

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

★ 2.7k FS 45 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Identity for .NET

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

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

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

★ 2.7k FS 60 Recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Identity for Java

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

★ 2.7k FS 51 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Microsoft Entra App Registration

A practical guide to Entra app registration and OAuth integration.

★ 2.7k FS 52 Use with care 3mo ago
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.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Playwright Cloud Testing

Scale TypeScript Playwright tests on Azure-hosted browsers and publish results.

★ 2.7k FS 53 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure PostgreSQL TypeScript Connector

A practical pg-based guide for secure, pooled Azure PostgreSQL access in Node.js and TypeScript.

★ 2.7k FS 49 Use with care 3mo ago
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.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for TypeScript

Securely store and retrieve application secrets in Azure Key Vault while managing key lifecycles from Node.js.

★ 2.7k FS 44 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs TypeScript Skill

Build TypeScript event-streaming applications with batching, partition-aware consumers, checkpointing, and Azure identity authentication.

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for TypeScript

A practical guide for uploading, downloading, and managing Azure Blob Storage from TypeScript and JavaScript applications.

★ 2.7k FS 51 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for TypeScript

Extract document text, tables, and structured fields in TypeScript applications.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Search for TypeScript

Build TypeScript search apps with vector, hybrid, and semantic retrieval patterns.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Projects for TypeScript

Practical TypeScript guidance for building Azure AI Foundry applications with project clients, agents, tools, and evaluations.

★ 2.7k FS 49 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure App Configuration for TypeScript

Build TypeScript apps with centralized settings, feature flags, and runtime configuration refresh.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

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

★ 2.7k FS 55 Use with care 3mo ago
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.

★ 2.7k FS 55 Use with care 3mo ago
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.

★ 2.7k FS 54 Use with care 3mo ago

Related skills