azure-identity-ts
Authenticate to Azure Services
This skill provides documentation and examples for authenticating to Azure services using the Azure Identity SDK for JavaScript and TypeScript. It supports multiple authentication methods including managed identities, service principals, and developer credentials.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "azure-identity-ts". How do I authenticate using DefaultAzureCredential?
Expected outcome:
Use DefaultAzureCredential for automatic authentication method selection:
```typescript
import { DefaultAzureCredential } from '@azure/identity';
import { BlobServiceClient } from '@azure/storage-blob';
const credential = new DefaultAzureCredential();
const blobClient = new BlobServiceClient(
'https://<account>.blob.core.windows.net',
credential
);
```
The credential chain tries: Environment → Workload Identity → Managed Identity → VS Code → Azure CLI → Azure PowerShell → Azure Developer CLI
Using "azure-identity-ts". Set up managed identity for my Azure function
Expected outcome:
Use ManagedIdentityCredential for Azure Functions with system-assigned identity:
```typescript
import { ManagedIdentityCredential } from '@azure/identity';
const credential = new ManagedIdentityCredential();
// For user-assigned identity, pass the clientId:
// const credential = new ManagedIdentityCredential({ clientId: '<user-assigned-client-id>' });
```
Security Audit
SafeThis is a documentation skill for Azure Identity SDK. Static findings are false positives - the skill documents authentication methods (environment variables, CLI commands, certificate paths) which are standard for authentication library documentation. No executable code, no credential handling, only documentation with placeholder values.
High Risk Issues (2)
Medium Risk Issues (1)
Low Risk Issues (2)
Quality Score
What You Can Build
Azure App Service Authentication
Configure managed identity authentication for a Node.js app running on Azure App Service to access Azure Storage
CI/CD Pipeline Authentication
Set up service principal authentication for automated deployments without interactive login
Local Development Setup
Use Azure CLI credential for local development with same authentication flow as production
Try These Prompts
How do I authenticate to Azure using DefaultAzureCredential in my TypeScript project?
Show me how to use managed identity to authenticate from an Azure VM
How do I authenticate using a service principal with client secret?
Create a custom credential chain that tries managed identity first, then falls back to Azure CLI
Best Practices
- Use DefaultAzureCredential in most cases - it automatically selects the best auth method
- Prefer managed identity in production to avoid storing secrets
- Use ChainedTokenCredential to create custom fallback chains for reliability
Avoid
- Hardcoding client secrets in source code - use environment variables instead
- Using interactive credentials in production - use managed identity or service principals
- Ignoring credential chain failures - always configure proper fallback options