azure-sdk-for-python
Copilot instructions5.6k starsChanged 21 months agoMITView on GitHub
Note: For general AI agent guidelines and repository overview, see AGENTS.md at the repository root. REFERENCE DOCUMENTATION: - Official pylint guide - Tool usage guide REFERENCE SOURCES: - Azure pylint guidelines - Pylint documentation ALLOWED ACTIONS: ✅ Fix warnings with 100% confidence ✅ Use existing file for all solutions ✅ Reference official guidelines FORBIDDEN ACTIONS: ❌ Fix warnings without complete confidence ❌ Create new files for solutions ❌ Import non-existent modules ❌ Add new dependencies/imports ❌ Make unnecessary large changes…
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
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 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 copilot-instructions.md into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use this as the authoritative source for SDK development guidance
- Distinctive: line 20
When using Copilot from Visual Studio or VS Code (not applicable when using Coding Agent on Github.com):
- Distinctive: line 71
Use Python 3.10 compatible environment
- Distinctive: line 72
Follow official fixing guidelines
- Very specific: line 73
Run azpysdk mypy . from the package directory
- Distinctive: line 79
Use the azure-sdk-python-mcp mcp tool to lookup a library's health status.
- Distinctive: line 80
Always include the date of last update based on the Last Refresh date.
- Distinctive: line 83
If links are available in the table, make the statuses (e.g.
- Distinctive: line 84
Don't share information like SDK Owned
- Distinctive: line 121
Repository: Use the current workspace as the local SDK repository unless the user specifies a different path.
- Distinctive: line 128
Ask the user for clarification if repository path or configuration file is ambiguous.
- Very specific: line 143
Use the apiVersions service-to-version map in sdk/<service>/azure-mgmt-<package>/_metadata.json for API-version checks, not the nullable …
- Very specific: line 147
If the release date of the latest version in CHANGELOG.md is more than 3 weeks in the future from the current date, remind the author to …
- Very specific: line 159
If subscription_id is not present in the client's __init__ signature, pyproject.toml must contain no_sub = true.
- Distinctive: line 167
Do not apply this rename requirement to existing releases, or infer a first release from a missing baseline alone.
≈ “Common” is an estimate: at least 1 in 5 of the 1,645 Copilot instructions 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
AZURE SDK FOR PYTHON - COPILOT INSTRUCTIONS
Note: For general AI agent guidelines and repository overview, see AGENTS.md at the repository root.
CORE PRINCIPLES
RULE 1: DO NOT REPEAT INSTRUCTIONS
NEVER repeat instructions when guiding users. Users should follow instructions independently.
RULE 2: REFERENCE OFFICIAL DOCUMENTATION
ALWAYS reference the Azure SDK Python Design Guidelines
- Link to specific pages when answering guidelines questions
- Use this as the authoritative source for SDK development guidance
RULE 3: VERIFY ENVIRONMENT FIRST
REQUIRED CONDITIONS:
- To use Azure MCP tool calls, users must have PowerShell installed. Provide PowerShell installation instructions if not installed, and recommend restarting the IDE to start the MCP server.
- When using Copilot from Visual Studio or VS Code (not applicable when using Coding Agent on Github.com):
- Always run the
azsdk_verify_setuptool first to validate the user's development environment for SDK MCP tools. - Do not proceed with any other tool execution until this step is complete.
- Skip this check only for queries that do not require tool execution.
- Always run the
PYLINT OPERATIONS
RUNNING PYLINT
REFERENCE DOCUMENTATION:
COMMAND:
azpysdk pylint .FIXING PYLINT WARNINGS
REFERENCE SOURCES:
ALLOWED ACTIONS: ✅ Fix warnings with 100% confidence ✅ Use existing file for all solutions ✅ Reference official guidelines
FORBIDDEN ACTIONS: ❌ Fix warnings without complete confidence ❌ Create new files for solutions ❌ Import non-existent modules ❌ Add new dependencies/imports ❌ Make unnecessary large changes ❌ Change code style without reason ❌ Delete code without clear justification
MYPY OPERATIONS
RUNNING AND FIXING MYPY
REFERENCE DOCUMENTATION:
REQUIREMENTS:
- Use Python 3.10 compatible environment
- Follow official fixing guidelines
- Run
azpysdk mypy .from the package directory
Python SDK Health tool
- Use the azure-sdk-python-mcp mcp tool to lookup a library's health status.
- Always include the date of last update based on the Last Refresh date.
- Explanation of statuses can be found here: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/repo_health_status.md
- Release blocking checks are MyPy, Pylint, Sphinx, and Tests - CI. These checks should all PASS. If not PASS, mention that the library is blocked for release.
- If links are available in the table, make the statuses (e.g. PASS, WARNING, etc) you report linked. Avoid telling the user to check the links in the report themselves.
- Don't share information like SDK Owned
Example
As of <Last Refresh date>, here is the health status for azure-ai-projects:
Overall Status: ⚠️ NEEDS_ACTION
✅ Passing Checks:
Pyright: PASS Sphinx: PASS Type Checked Samples: ENABLED SLA Questions and Bugs: 0
⚠️ Areas Needing Attention:
Pylint: WARNING Tests - Live: ❓ UNKNOWN Tests - Samples: ❌ DISABLED Customer-reported issues: 🔴 5 open issues
❌ Release blocking
Mypy: FAIL Tests - CI: FAIL
This library is failing two release blocking checks - Mypy and Tests - CI. The library needs attention primarily due to Pylint warnings, disabled sample tests, and open customer-reported issues.
Local SDK Generation and Package Lifecycle (TypeSpec)
AUTHORITATIVE REFERENCE
For all TypeSpec-based SDK workflows (generation, building, validation, testing, versioning, and release), follow #file:skills/azsdk-common-generate-sdk-locally/SKILL.md
DEFAULT BEHAVIORS
- Repository: Use the current workspace as the local SDK repository unless the user specifies a different path.
- Configuration: Identify
tsp-location.yamlfrom files open in the editor. If unclear, ask the user.
PYTHON-SPECIFIC RULES
- Skip build step: Python packages do not require compilation. After generation, proceed directly to validation and tests.
REQUIRED CONFIRMATIONS
Ask the user for clarification if repository path or configuration file is ambiguous.
MGMT SDK Code Review Rules
SCOPE
These rules apply to management-plane SDK packages located at sdk/*/azure-mgmt-*/.
REVIEW EXCLUSIONS
- Skip the
generated_samples/andgenerated_tests/folders entirely — do not review generated sample or test code. - Skip source code under
azure/mgmt/**/except_client.py— only review_client.pyamong the generated source files.
VERSION CONSISTENCY
- The version string in
_version.pymust match the latest version listed inCHANGELOG.md. - Use the
apiVersionsservice-to-version map insdk/<service>/azure-mgmt-<package>/_metadata.jsonfor API-version checks, not the nullable singularapiVersion. Missing or malformed maps are unverified evidence, not a reason to fall back toapiVersion. - Preview API versions must use preview SDK versions: if any value in
apiVersionscontainspreview(case-insensitive), the generated package version file (sdk/<service>/azure-mgmt-<package>/azure/mgmt/<package>/_version.py) must define a beta version such as1.0.0b1, not a stable version such as1.0.0. This includes maps containing both stable and preview API versions.
CHANGELOG DATE
- If the release date of the latest version in
CHANGELOG.mdis more than 3 weeks in the future from the current date, remind the author to verify and update the date.
PYPROJECT.TOML STABILITY FLAGS
- Stable version (version string does not contain
b):is_stableinpyproject.tomlmust betrueclassifiersmust include"Development Status :: 5 - Production/Stable"
- Preview version (version string contains
b):is_stableinpyproject.tomlmust befalseclassifiersmust include"Development Status :: 4 - Beta"
CLIENT SIGNATURE
- The
__init__method of the client class in_client.pymust include the parameterscredential,subscription_id, andbase_urlin that order. Default values are not checked. - If
subscription_idis not present in the client's__init__signature,pyproject.tomlmust containno_sub = true. If it does not, hint the user to addno_sub = trueinpyproject.tomland regenerate the SDK.
CLIENT NAME CONSISTENCY
- The client class name in
_client.py, the client name referenced inREADME.md, and thetitlevalue inpyproject.tomlmust all be the same.
INITIAL-RELEASE CLIENT NAME
- For a confirmed first release of a management SDK, the synchronous and asynchronous client class names must end with the exact suffix
MgmtClient. - A noncompliant name is a Blocking finding. Ask the author to add or update the client-name customization in
client.tspto choose a descriptive name ending inMgmtClient, then regenerate the SDK. - Do not apply this rename requirement to existing releases, or infer a first release from a missing baseline alone. If first-release status or client declarations cannot be verified, report the check as unverified.
README CODE SNIPPETS
- Code snippets in
README.mdmust follow the real client class signatures and usage patterns. Verify that sample code matches the actual client API.
SDK release
For detailed workflow instructions, see SDK Release.
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.

