azure-sdk-for-python
AGENTS.md5.6k starsChanged 21 months agoMITView on GitHub
This file describes how AI agents (e.g., GitHub Copilot, MCP servers, or LLM-based assistants) should interact with this repository. Purpose: This repository contains the active development of the Azure SDK for Python, providing client libraries and management libraries for Azure services. Scope: - 100+ Python packages for Azure services - Client libraries for data plane operations - Management libraries for Azure Resource Manager (ARM) - Shared core functionality (authentication, retries, logging, transport) - TypeSpec-based SDK generation from API specifications -…
Trending
Quiet since April.thin dataabout the whole repository
Who's talking about Azure/azure-sdk-for-python
- apache/airflow“Add Python 3.11 support”GitHub · Oct 25, 2022 · 24 reactions
- Azure/azure-sdk-for-net“[FEATURE REQ] Custom Events in Application Insights using azure-monitor-opentelemetry”GitHub · Feb 23, 2024 · 14 reactions
- hashicorp/terraform-provider-azurerm“custom_domain configuration for azurerm_storage_account not working as expected, when using Indirect CNAME …”GitHub · Jul 26, 2021 · 13 reactions
- Azure/azure-rest-api-specs“[BUG] [API Management] polling response didn't respect the format in new api version”GitHub · May 30, 2025 · 8 reactions
- Azure/azure-cli“az vm create --no-wait fails with "Extra data: line 1 column 4 (char 3)"”GitHub · Apr 8, 2026 · 6 reactions
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub, Hacker News and Bluesky (13 times).
On GitHub · 11
- Oct 25, 2022Add Python 3.11 support — apache/airflow24 reactions · 31 comments
- Feb 23, 2024[FEATURE REQ] Custom Events in Application Insights using azure-monitor-opentelemetry — Azure/azure-sdk-for-net14 reactions · 17 comments
- Jul 26, 2021custom_domain configuration for azurerm_storage_account not working as expected, when using Indirect CNAME validation — hashicorp/terraform-provider-azurerm13 reactions · 6 comments
- May 30, 2025[BUG] [API Management] polling response didn't respect the format in new api version — Azure/azure-rest-api-specs8 reactions · 1 comment
- Apr 8, 2026az vm create --no-wait fails with "Extra data: line 1 column 4 (char 3)" — Azure/azure-cli6 reactions · 8 comments
6 more on GitHub
- Aug 16, 2022Ignore existing resources within a subscription — Azure/azure-rest-api-specs6 reactions · 6 comments
- Dec 4, 2020Fix azure service bus integration with service bus library 7.0 — celery/kombu6 reactions
- Dec 12, 2023[CostManagement] `x-ms-pageable` not enabled for `Query_Usage` — Azure/azure-rest-api-specs5 reactions · 2 comments
- May 20, 2020Could not install package via pip. Dependency error. — michiya/azure-storage-logging5 reactions
- Mar 26, 2020Add a common AzureKeyCredential to Azure Core — Azure/azure-sdk5 reactions · 8 comments
- Jul 17, 2023Resources of type `"Microsoft.Network/publicIPAddresses"` does not include the `"zones"` field. — Azure/azure-rest-api-specs4 reactions · 1 comment
On Hacker News · 1
- May 3, 2024Azure SDK is over 500 MB and growing on each release4 points · 3 comments
On Bluesky · 1
- Sep 11, 2025📦 Azure / azure-sdk-for-python ⭐ 5,071 (+1) 🗒 Python This repository is for active development of the Azure SDK for Python. For consumers… — @github-trending.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository17 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-analysisSkill
- azsdk-common-pipeline-fixerSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-breaking-changeSkill
- azsdk-common-sdk-releaseSkill
- create-api-reviewSkill
- create-package-skillSkill
- find-package-skillSkill
- fix-blackSkill
- fix-mypySkill
- fix-pylintSkill
- fix-sphinxSkill
- generate-api-markdownSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
24 rules. About 0 are common, 18 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
Follow the complete workflow in .github/copilot-instructions.md
- Distinctive: line 48
Use MCP tools for environment verification, code generation, and validation
- Distinctive: line 53
Follow official guidelines and existing patterns
- Distinctive: line 56
Documentation: Update CHANGELOG.md, README files, and API documentation
- Distinctive: line 57
Follow existing formatting conventions
- Distinctive: line 65
Static Analysis: Run and fix issues from:
- Distinctive: line 73
PR Creation: Create draft PRs with descriptive titles and descriptions
- Very specific: line 97
Environment Verification: - Use verify_setup MCP tool
- Distinctive: line 98
SDK Generation: - Use azure-sdk-python-mcp generation tools (~2 minutes)
- Distinctive: line 99
Static Validation: - Run sequential validation steps (~3-5 minutes each):
- Distinctive: line 103
Documentation Update: - Update CHANGELOG.md and version files
- Distinctive: line 105
PR Creation: - Create draft PR with generated description
- Distinctive: line 128
Avoid adding new dependencies or large refactoring
- Very specific: line 134
Use CheckPackageReleaseReadiness MCP tool
- Distinctive: line 206
Check build logs for failures
- Distinctive: line 227
Use Black for formatting
- Very specific: line 234
Test recordings in tests/recordings/
- Very specific: line 286
Always verify environment first: - Run verify_setup before SDK operations
- Distinctive: line 288
Make minimal changes: - Only modify files with validation errors
- Distinctive: line 292
Create draft PRs: - Never create PRs in ready-for-review state
- Distinctive: line 293
Report progress frequently: - Use incremental commits
- Distinctive: line 303
Don't repeat instructions - reference documentation links
- Distinctive: line 305
Use markdown formatting for commands and code
- Very specific: line 313
Label: Use Agent label for agent-related issues
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md - Azure SDK for Python
This file describes how AI agents (e.g., GitHub Copilot, MCP servers, or LLM-based assistants) should interact with this repository.
Repository Overview
Purpose: This repository contains the active development of the Azure SDK for Python, providing client libraries and management libraries for Azure services.
Scope:
- 100+ Python packages for Azure services
- Client libraries for data plane operations
- Management libraries for Azure Resource Manager (ARM)
- Shared core functionality (authentication, retries, logging, transport)
- TypeSpec-based SDK generation from API specifications
- Comprehensive testing, validation, and documentation infrastructure
Main Branch: main
Key Documentation:
Repository Structure
azure-sdk-for-python/
├── sdk/ # Service-specific libraries (e.g., sdk/storage/, sdk/ai/)
├── eng/ # Engineering system tools and configurations
├── doc/ # Developer documentation and guides
├── scripts/ # Automation scripts
├── .github/ # GitHub workflows, Copilot instructions, skills, and prompts
│ ├── copilot-instructions.md # Detailed Copilot-specific guidance
│ ├── skills/ # Reusable Copilot skills (e.g., find-package, fix-pylint)
│ └── prompts/ # Copilot prompt files for common tasks
└── tools/ # Development toolsAI Agent Guidelines
Supported Actions
AI agents can assist with the following activities:
Code Generation & Development
- TypeSpec SDK Generation: Generate Python SDKs from TypeSpec specifications
- Follow the complete workflow in
.github/copilot-instructions.md - Use MCP tools for environment verification, code generation, and validation
- Time estimate: 10-15 minutes for full generation workflow
- Follow the complete workflow in
- Code Fixes: Address linting, type checking, and validation issues
- Pylint, MyPy, Pyright, Verifytypes, Sphinx warnings
- Follow official guidelines and existing patterns
- Make minimal, surgical changes
- Documentation: Update CHANGELOG.md, README files, and API documentation
- Follow existing formatting conventions
- Include version information and release dates
Testing & Validation
- Run Tests: Execute test suites using the
azpysdktest runner- Unit tests, integration tests, samples
- Support both local and CI environments
- Static Analysis: Run and fix issues from:
- Pylint (code quality)
- MyPy, Pyright (type checking)
- Bandit (security)
- Black (formatting)
- Sphinx (documentation)
Pull Request Management
- PR Creation: Create draft PRs with descriptive titles and descriptions
- PR Review: Analyze PR feedback and make requested changes
- Status Checks: Monitor CI/CD pipeline status and address failures
Issue Triage & Labeling
- Issue Analysis: Review and categorize issues
- Service Labels: Validate and create service labels (e.g.,
Azure.AI.Projects) - CODEOWNERS: Validate and update CODEOWNERS entries
Relationship to Copilot Instructions
This AGENTS.md file is the primary reference for AI agents working in this repository. It follows the AGENTS.md standard that most AI coding tools recognize automatically. For additional Copilot-specific guidance (e.g., TypeSpec generation details, MCP tool usage), see .github/copilot-instructions.md. Reusable skills are available in .github/skills/ and prompt templates in .github/prompts/.
Key Workflows
1. TypeSpec SDK Generation Workflow
Prerequisites:
- GitHub CLI authenticated (
gh auth login) - Feature branch (not
main) - PowerShell installed (for MCP tools)
- Python virtual environment active
Steps:
- Environment Verification - Use
verify_setupMCP tool - SDK Generation - Use azure-sdk-python-mcp generation tools (~2 minutes)
- Static Validation - Run sequential validation steps (~3-5 minutes each):
- Pylint, MyPy, Pyright, Verifytypes
- Sphinx, Mindependency, Bandit, Black
- Samples, Breaking changes
- Documentation Update - Update CHANGELOG.md and version files
- Commit & Push - Stage, commit, and push changes
- PR Creation - Create draft PR with generated description
- Handoff - Provide PR link for azure-rest-api-specs agent
Estimated Time: 10-15 minutes
2. Code Quality Workflow
Running Validation:
# Use azpysdk with appropriate environment from the package directory
azpysdk <environment> .
# Examples:
azpysdk pylint .
azpysdk mypy .Fixing Issues:
- Reference official guidelines:
- Make minimal changes that address specific warnings
- Avoid adding new dependencies or large refactoring
- Rerun validation after each fix
3. SDK Release Workflow
Check Release Readiness:
- Use
CheckPackageReleaseReadinessMCP tool - Validates: API review status, changelog, package approval, release date
Release Package:
- Use
ReleasePackageMCP tool - Triggers release pipeline (requires approval)
Release Blocking Checks:
- MyPy: PASS
- Pylint: PASS
- Sphinx: PASS
- Tests - CI: PASS
Automation Boundaries
Safe Operations
✅ Generate SDK code from TypeSpec specifications
✅ Run linting and static analysis tools
✅ Fix code quality warnings (with high confidence)
✅ Update documentation (CHANGELOG, README)
✅ Create and update PRs in draft mode
✅ Run existing test suites
✅ Validate CODEOWNERS entries
Restricted Operations
⚠️ Modifying generated code (requires review)
⚠️ Adding new dependencies (requires justification)
⚠️ Changing API signatures (requires design review)
⚠️ Disabling or removing tests (requires explanation)
⚠️ Large-scale refactoring (requires approval)
⚠️ Modifying CI/CD pipeline definitions (requires explicit human prompting)
Prohibited Operations
❌ Merging PRs without human review
❌ Releasing packages to PyPI
❌ Changing security or authentication logic without security review
❌ Committing secrets or credentials
❌ Force pushing to protected branches
Environment Requirements
Required Tools:
- Python 3.10 or later
- Node.js (for TypeSpec generation)
- azpysdk (test runner and automation)
- GitHub CLI (for PR operations)
- PowerShell (for MCP server on Windows)
MCP Server Tools:
azure-sdk-python-mcp- Python-specific SDK operationsazure-sdk-mcp- Cross-language SDK operationsazsdk-tools- Engineering system utilities
Virtual Environment:
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # WindowsCI/CD Integration
Pipeline System: Azure DevOps
Key Pipelines:
- Python CI: Core library tests and validation
- SDK Generation: TypeSpec-based code generation
- Release: Package publication to PyPI
Status Monitoring:
- Use
get_pipeline_statusMCP tool - Check build logs for failures
- Analyze failed tests with
get_failed_test_casestool
Artifact Analysis:
- Download artifacts with
get_pipeline_llm_artifacts - Review TRX test results
- Analyze log files with
analyze_log_filetool
SDK-Specific Conventions
Package Naming
- Client libraries:
azure-<service>-<component>(e.g.,azure-storage-blob) - Management libraries:
azure-mgmt-<service>(e.g.,azure-mgmt-compute)
Version Conventions
- Semantic versioning:
MAJOR.MINOR.PATCH - Preview versions:
MAJOR.MINOR.PATCHbN(e.g.,1.0.0b1) - Pre-release format in CHANGELOG:
## 1.0.0b1 (YYYY-MM-DD)
Code Style
- Follow PEP 8
- Use Black for formatting
- Type hints required (PEP 484)
- Docstrings in NumPy/Google style
Testing
- Use pytest framework
- Separate live and recorded tests
- Test recordings in
tests/recordings/ - Environment variables for credentials (never hardcode)
Cross-References
Detailed Copilot Instructions: See .github/copilot-instructions.md for:
- Complete TypeSpec SDK generation workflow
- Detailed validation steps and commands
- Pylint and MyPy fixing guidelines
- SDK health status interpretation
- SDK release procedures
Developer Documentation: See doc/dev/ for:
Example Prompts
SDK Generation
"Generate a Python SDK using TypeSpec from tspconfig.yaml at <path>"
"Start TypeSpec SDK generation workflow"
"Generate SDK from my local TypeSpec project at sdk/cognitiveservices/azure-ai-projects"Validation & Fixes
"Run pylint validation and fix any warnings"
"Check if my SDK passes all static validation steps"
"Fix the mypy errors in the generated SDK"Release Management
"Check if azure-ai-projects is ready for release"
"What is the health status of azure-storage-blob?"
"Release azure-ai-inference version 1.0.0"Repository Health
"Show me the health status for azure-ai-projects"
"Which checks are blocking the release of this library?"
"Are there any open customer issues for this package?"Agent Behavior Guidelines
Best Practices
- Always verify environment first - Run
verify_setupbefore SDK operations - Inform users of time expectations - SDK generation takes 10-15 minutes
- Make minimal changes - Only modify files with validation errors
- Reference official documentation - Link to Azure SDK design guidelines
- Run validation iteratively - Fix and rerun each step before proceeding
- Use MCP tools when available - Leverage specialized SDK tooling
- Create draft PRs - Never create PRs in ready-for-review state
- Report progress frequently - Use incremental commits
Error Handling
- For TypeSpec errors: Direct users to fix in source repository
- For authentication failures: Guide through
gh auth login - For missing dependencies: Provide installation instructions with links
- For validation failures: Reference specific fixing guidelines
- For pipeline failures: Analyze logs and provide actionable feedback
Communication Style
- Don't repeat instructions - reference documentation links
- Be concise and actionable
- Use markdown formatting for commands and code
- Provide time estimates for long operations
- Highlight release-blocking issues clearly
Reporting Issues
To report issues with AI agent interactions or suggest improvements:
- GitHub Issues: Azure SDK for Python Issues
- Label: Use
Agentlabel for agent-related issues - Include: Agent name/version, prompt used, expected vs actual behavior
Version
AGENTS.md Version: 1.0.0
Last Updated: 2025-01-22
Specification: Follows the AGENTS.md canonical structure
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

