Microsoft/azure-identity-ts — Agent Skills | officialskills.sh
Back to skills

azure-identity-ts

officialsecurity

Handles authentication to Azure services in TypeScript/JavaScript applications using the @azure/identity package.

Setup & Installation

npx skills add https://github.com/microsoft/skills --skill azure-identity-ts
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-typescript/skills/azure-identity-ts
View on GitHub

What This Skill Does

Handles authentication to Azure services in TypeScript/JavaScript applications using the @azure/identity package. Supports multiple credential types: managed identity, service principals with secrets or certificates, interactive browser login, device code flow, and developer credentials like Azure CLI. Works across environments from local development to production Kubernetes workloads.

DefaultAzureCredential automatically handles the credential chain across dev and prod environments, removing the need to write environment-specific authentication logic or manage token refresh manually.

When to use it

  • Authenticating an Azure Functions app to Blob Storage without storing secrets
  • Switching between local CLI credentials and managed identity without changing application code
  • Configuring a Kubernetes pod to access Azure Key Vault using workload identity federation
  • Setting up a CI/CD pipeline to call Azure APIs using a service principal certificate
  • Building a desktop tool that authenticates users through an interactive browser popup