azure-identity-ts
Azure Identity for JavaScript (@azure/identity): DefaultAzureCredential, managed identity and service principals.
- Kind
- Skill
- Works with
- Claude Code
- Languages
- TypeScript / JavaScript
- Source
- microsoft/skills @ 2130750147de
- Path
- .github/plugins/azure-sdk-typescript/skills/azure-identity-ts/SKILL.md
- Jobs
- Implementation
- Topics
- Cloud platforms
Credit
- Made by
- microsoft
- Original
- github.com/microsoft/skills/blob/2130750147dee0311215099ddf36…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/skills/azure-identity-ts/ (the skill folder)
- 2 other files in the folder: references/browser-auth.md, references/credential-types.md
- Runs scripts
- Yes
- shell block in the text
- shell block in the text (references/browser-auth.md)
- shell block in the text (references/credential-types.md)
- Uses the network
- Yes
- downloads npm packages
- downloads npm packages (references/browser-auth.md)
- Needs secrets
- Yes
- AZURE_CLIENT_SECRET
- AZURE_TOKEN_CREDENTIALS
- AZURE_CLIENT_CERTIFICATE_PASSWORD
- Reads environment variables
- AZURE_CLIENT_SECRET
- AZURE_TOKEN_CREDENTIALS
- AZURE_CLIENT_CERTIFICATE_PASSWORD
- AZURE_TENANT_ID
- AZURE_CLIENT_ID
- Reads outside the project
- /var/run/secrets/tokens/azure-identity (SKILL.md)
- /var/run/secrets/azure/tokens/azure-identity-token (references/credential-types.md)
- Calls other skills
- /button
- /div
- Source revision
- 2130750147de
- Licence
- MIT
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# Azure Identity library for TypeScript
Authentication library for Azure SDK clients using Microsoft Entra ID.
## Installation
```bash
npm install @azure/identity
# For Visual Studio Code credential support
npm install @azure/identity-vscode
```
## Environment Variables
### Service Principal (Secret)
```bash
AZURE_TENANT_ID=<tenant-id>
AZURE_CLIENT_ID=<client-id>
AZURE_CLIENT_SECRET=<client-secret>
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
```
### Service Principal (Certificate)
```bash
AZURE_TENANT_ID=<tenant-id>
AZURE_CLIENT_ID=<client-id>
AZURE_CLIENT_CERTIFICATE_PATH=/path/to/cert.pem
AZURE_CLIENT_CERTIFICATE_PASSWORD=<optional-password>
```
### Workload Identity (Kubernetes)
```bash
AZURE_TENANT_ID=<tenant-id>
AZURE_CLIENT_ID=<client-id>
AZURE_FEDERATED_TOKEN_FILE=/var/run/secrets/tokens/azure-identity
```
## DefaultAzureCredential (Recommended for Local Development)
```typescript
import { DefaultAzureCredential, ManagedIdentityCredential } from "@azure/identity";
// Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential>
…