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.
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「azure-identity-ts」を使用しています。 How do I authenticate using DefaultAzureCredential?
期待される結果:
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
「azure-identity-ts」を使用しています。 Set up managed identity for my Azure function
期待される結果:
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>' });
```
セキュリティ監査
安全This 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.
高リスクの問題 (2)
中リスクの問題 (1)
低リスクの問題 (2)
品質スコア
作れるもの
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
これらのプロンプトを試す
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
ベストプラクティス
- 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
回避
- 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