All skills
microsoft avatar

/azure-keyvault-py

@e19efc2
by microsoftmicrosoft/skills3.1k stars
351

Azure Key Vault SDK for Python. Use for secrets, keys, and certificates management with secure storage. Triggers: "key vault", "SecretClient", "KeyClient", "CertificateClient", "secrets", "encryption keys".

Use this Skill: https://skilld.dev/gh/microsoft/skills/azure-keyvault-py

This session only. Nothing lands on disk.

referencesnon-hero-scenarios.md

≈265 tokens on demand. Your agent reads this file only when SKILL.md points to it.

azure-keyvault-py non-hero scenarios

These scenarios are intentionally separate from hero flows in SKILL.md. They cover secondary/advanced patterns typically used after the primary end-to-end path is working.

Async Clients

from azure.identity.aio import DefaultAzureCredential
from azure.keyvault.secrets.aio import SecretClient

async def get_secret():
    async with DefaultAzureCredential() as credential:
        async with SecretClient(vault_url=vault_url, credential=credential) as client:
            secret = await client.get_secret("my-secret")
            print(f"Retrieved secret: {secret.name} (version: {secret.properties.version})")

import asyncio
asyncio.run(get_secret())

Error Handling

from azure.core.exceptions import ResourceNotFoundError, HttpResponseError

try:
    secret = client.get_secret("nonexistent")
except ResourceNotFoundError:
    print("Secret not found")
except HttpResponseError as e:
    if e.status_code == 403:
        print("Access denied - check RBAC permissions")
    raise

Source: SKILL.md on GitHub

1 warning15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill provides a comprehensive guide for using the Azure Key Vault SDK for Python. It adheres to industry-standard security practices, such as promoting the use of DefaultAzureCredential and Managed Identity over hardcoded secrets, and it includes robust error handling and lifecycle management patterns.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    2/2 files flagged

Signed by skilld at e19efc2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
Other metadata
metadata
{
  "author": "Microsoft",
  "version": "1.0.0",
  "package": "azure-keyvault-secrets, azure-keyvault-keys, azure-keyvault-certificates"
}

README badge

README badge for microsoft/skills/azure-keyvault-py