Dev & Engineering ✓ Microsoft · Official azure-identitytypescriptentra-idmanaged-identityservice-principaloauth2azure-sdk

Azure Identity for TypeScript

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

FollowSkills review · FSRS-2.0
Not recommended
57/ 100 5-point scale 2.9 / 5
Trust18 / 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.

Reliability8 / 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.

Adaptability10 / 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.

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

Effectiveness7 / 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.

Verifiability5 / 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.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
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.
See the full review method →

What it does & when to 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.

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

Pros & cons

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 to install

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.

How to use

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.

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 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.

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.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Rust

A focused guide for building secure Azure Queue Storage messaging workflows in Rust.

Related skills