{
  "schemaVersion": "1.0",
  "item": {
    "slug": "azure-identity-py",
    "name": "Azure Identity Py",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/thegovind/azure-identity-py",
    "canonicalUrl": "https://clawhub.ai/thegovind/azure-identity-py",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/azure-identity-py",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=azure-identity-py",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/azure-identity-py"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/azure-identity-py",
    "agentPageUrl": "https://openagent3.xyz/skills/azure-identity-py/agent",
    "manifestUrl": "https://openagent3.xyz/skills/azure-identity-py/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/azure-identity-py/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Azure Identity SDK for Python",
        "body": "Authentication library for Azure SDK clients using Microsoft Entra ID (formerly Azure AD)."
      },
      {
        "title": "Installation",
        "body": "pip install azure-identity"
      },
      {
        "title": "Environment Variables",
        "body": "# Service Principal (for production/CI)\nAZURE_TENANT_ID=<your-tenant-id>\nAZURE_CLIENT_ID=<your-client-id>\nAZURE_CLIENT_SECRET=<your-client-secret>\n\n# User-assigned Managed Identity (optional)\nAZURE_CLIENT_ID=<managed-identity-client-id>"
      },
      {
        "title": "DefaultAzureCredential",
        "body": "The recommended credential for most scenarios. Tries multiple authentication methods in order:\n\nfrom azure.identity import DefaultAzureCredential\nfrom azure.storage.blob import BlobServiceClient\n\n# Works in local dev AND production without code changes\ncredential = DefaultAzureCredential()\n\nclient = BlobServiceClient(\n    account_url=\"https://<account>.blob.core.windows.net\",\n    credential=credential\n)"
      },
      {
        "title": "Credential Chain Order",
        "body": "OrderCredentialEnvironment1EnvironmentCredentialCI/CD, containers2WorkloadIdentityCredentialKubernetes3ManagedIdentityCredentialAzure VMs, App Service, Functions4SharedTokenCacheCredentialWindows only5VisualStudioCodeCredentialVS Code with Azure extension6AzureCliCredentialaz login7AzurePowerShellCredentialConnect-AzAccount8AzureDeveloperCliCredentialazd auth login"
      },
      {
        "title": "Customizing DefaultAzureCredential",
        "body": "# Exclude credentials you don't need\ncredential = DefaultAzureCredential(\n    exclude_environment_credential=True,\n    exclude_shared_token_cache_credential=True,\n    managed_identity_client_id=\"<user-assigned-mi-client-id>\"  # For user-assigned MI\n)\n\n# Enable interactive browser (disabled by default)\ncredential = DefaultAzureCredential(\n    exclude_interactive_browser_credential=False\n)"
      },
      {
        "title": "ManagedIdentityCredential",
        "body": "For Azure-hosted resources (VMs, App Service, Functions, AKS):\n\nfrom azure.identity import ManagedIdentityCredential\n\n# System-assigned managed identity\ncredential = ManagedIdentityCredential()\n\n# User-assigned managed identity\ncredential = ManagedIdentityCredential(\n    client_id=\"<user-assigned-mi-client-id>\"\n)"
      },
      {
        "title": "ClientSecretCredential",
        "body": "For service principal with secret:\n\nfrom azure.identity import ClientSecretCredential\n\ncredential = ClientSecretCredential(\n    tenant_id=os.environ[\"AZURE_TENANT_ID\"],\n    client_id=os.environ[\"AZURE_CLIENT_ID\"],\n    client_secret=os.environ[\"AZURE_CLIENT_SECRET\"]\n)"
      },
      {
        "title": "AzureCliCredential",
        "body": "Uses the account from az login:\n\nfrom azure.identity import AzureCliCredential\n\ncredential = AzureCliCredential()"
      },
      {
        "title": "ChainedTokenCredential",
        "body": "Custom credential chain:\n\nfrom azure.identity import (\n    ChainedTokenCredential,\n    ManagedIdentityCredential,\n    AzureCliCredential\n)\n\n# Try managed identity first, fall back to CLI\ncredential = ChainedTokenCredential(\n    ManagedIdentityCredential(client_id=\"<user-assigned-mi-client-id>\"),\n    AzureCliCredential()\n)"
      },
      {
        "title": "Credential Types Table",
        "body": "CredentialUse CaseAuth MethodDefaultAzureCredentialMost scenariosAuto-detectManagedIdentityCredentialAzure-hosted appsManaged IdentityClientSecretCredentialService principalClient secretClientCertificateCredentialService principalCertificateAzureCliCredentialLocal developmentAzure CLIAzureDeveloperCliCredentialLocal developmentAzure Developer CLIInteractiveBrowserCredentialUser sign-inBrowser OAuthDeviceCodeCredentialHeadless/SSHDevice code flow"
      },
      {
        "title": "Getting Tokens Directly",
        "body": "from azure.identity import DefaultAzureCredential\n\ncredential = DefaultAzureCredential()\n\n# Get token for a specific scope\ntoken = credential.get_token(\"https://management.azure.com/.default\")\nprint(f\"Token expires: {token.expires_on}\")\n\n# For Azure Database for PostgreSQL\ntoken = credential.get_token(\"https://ossrdbms-aad.database.windows.net/.default\")"
      },
      {
        "title": "Async Client",
        "body": "from azure.identity.aio import DefaultAzureCredential\nfrom azure.storage.blob.aio import BlobServiceClient\n\nasync def main():\n    credential = DefaultAzureCredential()\n    \n    async with BlobServiceClient(\n        account_url=\"https://<account>.blob.core.windows.net\",\n        credential=credential\n    ) as client:\n        # ... async operations\n        pass\n    \n    await credential.close()"
      },
      {
        "title": "Best Practices",
        "body": "Use DefaultAzureCredential for code that runs locally and in Azure\nNever hardcode credentials — use environment variables or managed identity\nPrefer managed identity in production Azure deployments\nUse ChainedTokenCredential when you need a custom credential order\nClose async credentials explicitly or use context managers\nSet AZURE_CLIENT_ID for user-assigned managed identities\nExclude unused credentials to speed up authentication"
      }
    ],
    "body": "Azure Identity SDK for Python\n\nAuthentication library for Azure SDK clients using Microsoft Entra ID (formerly Azure AD).\n\nInstallation\npip install azure-identity\n\nEnvironment Variables\n# Service Principal (for production/CI)\nAZURE_TENANT_ID=<your-tenant-id>\nAZURE_CLIENT_ID=<your-client-id>\nAZURE_CLIENT_SECRET=<your-client-secret>\n\n# User-assigned Managed Identity (optional)\nAZURE_CLIENT_ID=<managed-identity-client-id>\n\nDefaultAzureCredential\n\nThe recommended credential for most scenarios. Tries multiple authentication methods in order:\n\nfrom azure.identity import DefaultAzureCredential\nfrom azure.storage.blob import BlobServiceClient\n\n# Works in local dev AND production without code changes\ncredential = DefaultAzureCredential()\n\nclient = BlobServiceClient(\n    account_url=\"https://<account>.blob.core.windows.net\",\n    credential=credential\n)\n\nCredential Chain Order\nOrder\tCredential\tEnvironment\n1\tEnvironmentCredential\tCI/CD, containers\n2\tWorkloadIdentityCredential\tKubernetes\n3\tManagedIdentityCredential\tAzure VMs, App Service, Functions\n4\tSharedTokenCacheCredential\tWindows only\n5\tVisualStudioCodeCredential\tVS Code with Azure extension\n6\tAzureCliCredential\taz login\n7\tAzurePowerShellCredential\tConnect-AzAccount\n8\tAzureDeveloperCliCredential\tazd auth login\nCustomizing DefaultAzureCredential\n# Exclude credentials you don't need\ncredential = DefaultAzureCredential(\n    exclude_environment_credential=True,\n    exclude_shared_token_cache_credential=True,\n    managed_identity_client_id=\"<user-assigned-mi-client-id>\"  # For user-assigned MI\n)\n\n# Enable interactive browser (disabled by default)\ncredential = DefaultAzureCredential(\n    exclude_interactive_browser_credential=False\n)\n\nSpecific Credential Types\nManagedIdentityCredential\n\nFor Azure-hosted resources (VMs, App Service, Functions, AKS):\n\nfrom azure.identity import ManagedIdentityCredential\n\n# System-assigned managed identity\ncredential = ManagedIdentityCredential()\n\n# User-assigned managed identity\ncredential = ManagedIdentityCredential(\n    client_id=\"<user-assigned-mi-client-id>\"\n)\n\nClientSecretCredential\n\nFor service principal with secret:\n\nfrom azure.identity import ClientSecretCredential\n\ncredential = ClientSecretCredential(\n    tenant_id=os.environ[\"AZURE_TENANT_ID\"],\n    client_id=os.environ[\"AZURE_CLIENT_ID\"],\n    client_secret=os.environ[\"AZURE_CLIENT_SECRET\"]\n)\n\nAzureCliCredential\n\nUses the account from az login:\n\nfrom azure.identity import AzureCliCredential\n\ncredential = AzureCliCredential()\n\nChainedTokenCredential\n\nCustom credential chain:\n\nfrom azure.identity import (\n    ChainedTokenCredential,\n    ManagedIdentityCredential,\n    AzureCliCredential\n)\n\n# Try managed identity first, fall back to CLI\ncredential = ChainedTokenCredential(\n    ManagedIdentityCredential(client_id=\"<user-assigned-mi-client-id>\"),\n    AzureCliCredential()\n)\n\nCredential Types Table\nCredential\tUse Case\tAuth Method\nDefaultAzureCredential\tMost scenarios\tAuto-detect\nManagedIdentityCredential\tAzure-hosted apps\tManaged Identity\nClientSecretCredential\tService principal\tClient secret\nClientCertificateCredential\tService principal\tCertificate\nAzureCliCredential\tLocal development\tAzure CLI\nAzureDeveloperCliCredential\tLocal development\tAzure Developer CLI\nInteractiveBrowserCredential\tUser sign-in\tBrowser OAuth\nDeviceCodeCredential\tHeadless/SSH\tDevice code flow\nGetting Tokens Directly\nfrom azure.identity import DefaultAzureCredential\n\ncredential = DefaultAzureCredential()\n\n# Get token for a specific scope\ntoken = credential.get_token(\"https://management.azure.com/.default\")\nprint(f\"Token expires: {token.expires_on}\")\n\n# For Azure Database for PostgreSQL\ntoken = credential.get_token(\"https://ossrdbms-aad.database.windows.net/.default\")\n\nAsync Client\nfrom azure.identity.aio import DefaultAzureCredential\nfrom azure.storage.blob.aio import BlobServiceClient\n\nasync def main():\n    credential = DefaultAzureCredential()\n    \n    async with BlobServiceClient(\n        account_url=\"https://<account>.blob.core.windows.net\",\n        credential=credential\n    ) as client:\n        # ... async operations\n        pass\n    \n    await credential.close()\n\nBest Practices\nUse DefaultAzureCredential for code that runs locally and in Azure\nNever hardcode credentials — use environment variables or managed identity\nPrefer managed identity in production Azure deployments\nUse ChainedTokenCredential when you need a custom credential order\nClose async credentials explicitly or use context managers\nSet AZURE_CLIENT_ID for user-assigned managed identities\nExclude unused credentials to speed up authentication"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/thegovind/azure-identity-py",
    "publisherUrl": "https://clawhub.ai/thegovind/azure-identity-py",
    "owner": "thegovind",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/azure-identity-py",
    "downloadUrl": "https://openagent3.xyz/downloads/azure-identity-py",
    "agentUrl": "https://openagent3.xyz/skills/azure-identity-py/agent",
    "manifestUrl": "https://openagent3.xyz/skills/azure-identity-py/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/azure-identity-py/agent.md"
  }
}