---
title: "Azure Identity library for TypeScript: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/microsoft-azure-identity-ts/
description: "Microsoft's TypeScript guide to @azure/identity: DefaultAzureCredential gated on AZURE_TOKEN_CREDENTIALS, managed and workload identity, service principals, browser and device-code sign-in, and bearer-token providers."
---

# Azure Identity library for TypeScript: review, setup & limitations · Undominated.ai

> Microsoft's TypeScript guide to @azure/identity: DefaultAzureCredential gated on AZURE_TOKEN_CREDENTIALS, managed and workload identity, service principals, browser and device-code sign-in, and bearer-token providers.

[← Explore all skills](/skills/)

CLOUD DEVELOPMENT / Microsoft

# Azure Identity library for TypeScript

Microsoft's TypeScript guide to @azure/identity: DefaultAzureCredential gated on AZURE_TOKEN_CREDENTIALS, managed and workload identity, service principals, browser and device-code sign-in, and bearer-token providers.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/microsoft/skills/tree/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts)

SOURCE REVIEW

 Reviewed 2026-10-21
 Evidence 6 linked sources
 Publisher Microsoft
 Licence [MIT ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/LICENSE)
 Revision fc164ba1d7a0
 [Read what was—and wasn’t—checked ↓](#review)

“Authenticate to Azure services using Azure Identity library for JavaScript (@azure/identity). Use when configuring authentication with DefaultAzureCredential, managed identity, service principals, or interactive browser login.”

 [Microsoft · upstream description ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - Practice 1 puts DefaultAzureCredential on local development and ManagedIdentityCredential or WorkloadIdentityCredential on production, and both DefaultAzureCredential samples pass requiredEnvVars: ["AZURE_TOKEN_CREDENTIALS"].
- It shows user-assigned managed identity by client ID, resource ID and object ID, the workload identity variables for Kubernetes, and service principals with a secret or a certificate.
- It covers getBearerTokenProvider for APIs that take bearer tokens, and a custom TokenCredential written against the @azure/core-auth types.

### A good fit for

 - Configure a Node.js service to use a user-assigned managed identity by client ID, resource ID or object ID
- Get a bearer-token function for https://cognitiveservices.azure.com/.default with getBearerTokenProvider
- Fall back from managed identity to the Azure CLI with ChainedTokenCredential
- Sign a user in from a TypeScript tool with InteractiveBrowserCredential or DeviceCodeCredential

### Weigh up before choosing

 - Both install lines Microsoft prints for this skill, `npx skills add microsoft/skills --skill azure-sdk-typescript` and `/plugin install azure-sdk-typescript@skills`, install the whole azure-sdk-typescript plugin rather than the identity skill alone.
- Both DefaultAzureCredential samples list AZURE_TOKEN_CREDENTIALS in requiredEnvVars, while the environment block calls it "Required only if DefaultAzureCredential is used in production"; the file does not say what happens in local development when it is unset.
- The file does not give the credential chain order; it links to Microsoft's overview "for the current credential chain order and defaults".
- The debugging sample sets the log level to verbose and sends every Azure log line to console.log.
- The custom credential sample returns a fixed placeholder token that expires after 3600000 ms; it shows the interface, not token acquisition.
- references/browser-auth.md and references/credential-types.md sit beside SKILL.md, which does not link to them; this review did not open them.
- The azure-identity-ts directory was last changed at the pin by commit ee33ce9d, committed 2026-04-21 (2026-04-22T00:13:36Z UTC).

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - .github/plugins/azure-sdk-typescript/skills/azure-identity-ts/SKILL.md (all 327 lines)
- .github/plugins/azure-sdk-typescript/README.md
- .github/plugins/azure-sdk-typescript/.claude-plugin/plugin.json
- README.md
- LICENSE

### Our findings

 - The Installation block adds @azure/identity, and @azure/identity-vscode for Visual Studio Code credential support, which the sample enables with useIdentityPlugin(vsCodePlugin).
- Workload identity uses AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_FEDERATED_TOKEN_FILE=/var/run/secrets/tokens/azure-identity.
- Sovereign-cloud samples set authorityHost to AzureAuthorityHosts.AzureGovernment or AzureAuthorityHosts.AzureChina.
- Practice 2 says never to hardcode credentials and to use environment variables or managed identity; practice 5 says the Azure SDK handles token refresh automatically.
- The frontmatter declares license MIT, author Microsoft, version 1.0.0 and package @azure/identity. It declares no allowed-tools.

### Not established by this review

 - No credential was constructed, no sign-in prompt was opened and no token was requested.
- @azure/identity and @azure/identity-vscode were not installed from npm.
- Neither the azure-sdk-typescript plugin nor azure-identity-ts was installed, and the two reference files were not read.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/README.md)
 - The azure-sdk-typescript plugin README prints `npx skills add microsoft/skills --skill azure-sdk-typescript` under Install. It installs the whole azure-sdk-typescript plugin, whose skill table lists azure-identity-ts; it does not install that skill alone.
- The same README prints `/plugin install azure-sdk-typescript@skills`, which also brings in azure-identity-ts together with every other skill in the plugin. The repository README runs plugin commands inside Copilot CLI after `/plugin marketplace add microsoft/skills`.

### Before you start

 - The skill prints `npm install @azure/identity`, and `npm install @azure/identity-vscode` for Visual Studio Code credential support. This review ran neither.
- A credential source the file names: AZURE_TENANT_ID and AZURE_CLIENT_ID with AZURE_CLIENT_SECRET or AZURE_CLIENT_CERTIFICATE_PATH, a managed or workload identity, or an az login, azd auth login or Connect-AzAccount session.
- AZURE_TOKEN_CREDENTIALS, which the DefaultAzureCredential samples name in requiredEnvVars.
- Copilot CLI, where `/plugin install azure-sdk-typescript@skills` adds this identity skill with the rest of the plugin.

### Compatibility

Copilot CLI · GitHub Copilot in VS Code

### Implementation

TypeScript

### Reference text; Entra ID sign-ins and token requests happen only in code an operator runs

 - The azure-identity-ts frontmatter declares no allowed-tools; its directory holds SKILL.md, references/browser-auth.md and references/credential-types.md, and no scripts.
- Credentials come from the environment variables the file lists, a certificate at /path/to/cert.pem, a federated token file, a managed identity, or an existing Azure CLI, azd, Azure PowerShell or Visual Studio Code sign-in.
- InteractiveBrowserCredential opens a browser sign-in; DeviceCodeCredential prints the sign-in message to the console.
- Tokens are issued by Microsoft Entra ID; the samples request the https://cognitiveservices.azure.com/.default scope and call Blob Storage at https://<account>.blob.core.windows.net.

### Cost model

Free to copy under MIT. The file states no price for the Entra ID, Storage or Cognitive Services calls in its samples, and this review looked none up.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [azure-identity-ts SKILL.md at the pin ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts/SKILL.md) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts/SKILL.md Supports: name, upstreamDescription, summary, whySelected, bestFor, limitations, review.findings, install.prerequisites, access.permissions
- [azure-sdk-typescript plugin README ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/README.md) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/README.md Supports: install.sourceUrl, install.steps, limitations (install scope)
- [azure-sdk-typescript plugin.json ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/.claude-plugin/plugin.json) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-typescript/.claude-plugin/plugin.json Supports: publisher, license (plugin licence field)
- [Repository README ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/README.md) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/README.md Supports: compatibility, install.steps (Copilot CLI plugin commands)
- [Repository LICENSE ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/LICENSE) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/LICENSE Supports: license
- [Commit ee33ce9d, the last change to azure-identity-ts at the pin ↗](https://github.com/microsoft/skills/commit/ee33ce9d2b4372b0cfe58375bebbf0bd989e3ac9) Checked 2026-10-21 https://github.com/microsoft/skills/commit/ee33ce9d2b4372b0cfe58375bebbf0bd989e3ac9 Supports: limitations (last commit date)

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Azure Identity library for .NET ↗ Microsoft's .NET guide to choosing an Azure.Identity credential: DefaultAzureCredential while developing, a specific managed identity in production, plus service principal, developer and sovereign-cloud options.](/skills/microsoft-azure-identity-dotnet/)[### Azure Identity library for Rust ↗ Microsoft's Rust guide to azure_identity, which has no DefaultAzureCredential: DeveloperToolsCredential for local work, ManagedIdentityCredential for Azure-hosted code and ClientSecretCredential for service principals.](/skills/microsoft-azure-identity-rust/)[### Azure Key Vault Keys SDK for TypeScript ↗ Microsoft's TypeScript guide to @azure/keyvault-keys for creating, rotating and deleting Key Vault keys and for encrypt, sign and wrap operations through CryptographyClient; the same file also carries secret operations.](/skills/microsoft-azure-keyvault-keys-ts/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
