azure-identity-ts

Authenticate Azure SDK clients in TypeScript apps using Azure Identity credentials.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill azure-identity-ts-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-identity-ts
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts
Command: npx skills add https://github.com/microsoft/skills --skill azure-identity-ts-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Azure developers need a simple, secure way to authenticate SDK clients across cloud services without embedding secrets.

Core Features & Use Cases

  • Supports DefaultAzureCredential and multiple credential types
  • Seamlessly integrates with Azure SDKs in TypeScript projects
  • Suitable for local development and production workloads

Quick Start

Install @azure/identity and use DefaultAzureCredential to authenticate Azure SDK clients in your app.

Frequently Asked Questions about azure-identity-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate Azure SDK clients in TypeScript without embedding secrets?

You can authenticate Azure SDK clients in TypeScript by using the @azure/identity library to acquire tokens. It supports DefaultAzureCredential and multiple credential types to provide seamless authentication without handling secrets directly.

What is DefaultAzureCredential and when should I use it for Azure authentication?

DefaultAzureCredential is an authentication strategy in @azure/identity that automatically selects the best credential type for your environment. It is suitable for both local development and production workloads, simplifying the transition between different deployment contexts.

Does Azure Identity support managed identity for production TypeScript apps?

Yes, Azure Identity supports ManagedIdentityCredential for production TypeScript apps. This allows your applications to authenticate to Azure services automatically using identities managed by the platform, eliminating the need for stored credentials.

Can I use client certificate or secret credentials with the Azure Identity library?

Yes, the Azure Identity library supports ClientSecretCredential and ClientCertificateCredential. These options allow you to authenticate TypeScript applications using application registration secrets or certificates when managed identity is not available.

What's the best way to handle environment variables and token caching for Azure authentication?

The Azure Identity library provides safe handling of environment variables and token caching automatically. When you use credentials like DefaultAzureCredential, it securely reads necessary configuration from your environment and manages token lifecycle.