本文へスキップ
TakoAPI
スキル一覧に戻る

azure-identity-py

thegovind 作

DevOps & Cloud
1.7kダウンロード数はclawskills.shが公開している値です
1スター
0閲覧数
0件のいいねサインインするとこのスキルにいいねできます
—まだ評価がありません
あなたの評価

概要

Azure Identity SDK for Python authentication.

説明

このスキルでできること

Python authentication library for Azure SDK clients, using Microsoft Entra ID (formerly Azure AD). Supports DefaultAzureCredential for automatic credential detection, plus specific credential types for managed identity, service principals, and CLI-based auth.

DefaultAzureCredential's ordered credential chain means one line of code works in local dev, containers, and Azure-hosted environments without any conditional logic.

使いどころ

  • Authenticate to Azure Blob Storage without hardcoded credentials
  • Run the same auth code locally with az login and in production with managed identity
  • Authenticate a CI/CD pipeline to Azure using service principal environment variables
  • Give an AKS pod access to Azure resources via workload identity
  • Get short-lived access tokens for Azure Database for PostgreSQL

ワークフロー例

入力

User asks: Connect to Azure Blob Storage using managed identity in production

エージェント
  1. 1

    Import DefaultAzureCredential from azure.identity

  2. 2

    Instantiate DefaultAzureCredential without arguments

  3. 3

    Pass credential to BlobServiceClient constructor

  4. 4

    SDK automatically uses ManagedIdentityCredential when running in Azure

  5. 5

    Falls back to AzureCliCredential when running locally with az login

出力

Authenticated BlobServiceClient that works in both local dev and Azure production without code changes

要件

  • Azure subscription
  • AZURE_TENANT_ID environment variable (service principal auth)
  • AZURE_CLIENT_ID environment variable (service principal or user-assigned managed identity)
  • AZURE_CLIENT_SECRET environment variable (service principal auth)

インストール

clawhub install thegovind/azure-identity-py

CLIコマンドを実行するか、Claude Code、Cursor、Codexなどお使いのコーディングエージェントにプロンプトを貼り付けてください。

リンク