azure-carbon-optimization
About azure-carbon-optimization
azure-carbon-optimization is an agent skill for managing Azure Carbon Optimization, with local references and remotely fetched documentation. It focuses on troubleshooting, Azure Advisor recommendations, access control, and exporting carbon data through REST and Python.
Key features
- 01Carbon reporting troubleshooting
- 02Azure Advisor emissions guidance
- 03RBAC access configuration
- 04REST data export
- 05Python export integration
Use cases
- 01Investigating carbon data collection issues
- 02Applying recommendations to reduce emissions
- 03Configuring user and service principal access
- 04Exporting carbon data to external systems
MCP support
The skill can fetch Microsoft documentation through the mcp_microsoftdocs microsoft_docs_fetch tool; it also describes fetch_webpage as a fallback.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ microsoftdocs/ agent-skills --skill azure-carbon-optimizationAfter installing, type/azure-carbon-optimizationin Claude Code to confirm it loaded.
Details
From the project READMEAzure Carbon Optimization Skill
This skill provides expert guidance for Azure Carbon Optimization. Covers troubleshooting, best practices, security, and integrations & coding patterns. It combines local quick-reference content with remote documentation fetching capabilities.
How to Use This Skill
IMPORTANT for Agent: Use the Category Index below to locate relevant sections. For categories with line ranges (e.g.,
L35-L120), useread_filewith the specified lines. For categories with file links (e.g.,[security.md](security.md)), useread_fileon the linked reference file
IMPORTANT for Agent: If
metadata.generated_atis more than 3 months old, suggest the user pull the latest version from the repository. Ifmcp_microsoftdocstools are not available, suggest the user install it: Installation Guide
This skill requires network access to fetch documentation content:
- Preferred: Use
mcp_microsoftdocs:microsoft_docs_fetchwith query stringfrom=learn-agent-skill. Returns Markdown. - Fallback: Use
fetch_webpagewith query stringfrom=learn-agent-skill&accept=text/markdown. Returns Markdown.
Category Index
| Category | Lines | Description |
|---|---|---|
| Troubleshooting | L32-L36 | Diagnosing and resolving Azure Carbon Optimization issues, including data collection problems, configuration errors, and troubleshooting carbon reporting or optimization results. |
| Best Practices | L37-L41 | Using Azure Advisor to identify, prioritize, and implement recommendations that reduce carbon emissions by optimizing resource usage and configuration. |
| Security | L42-L46 | Configuring role-based access control (RBAC) for Azure Carbon Optimization, including permissions, roles, and access setup for users and service principals. |
| Integrations & Coding Patterns | L47-L51 | Exporting Azure carbon optimization data via REST and Python, including endpoints, auth, payload formats, and sample code for integrating emissions data into external systems. |
Troubleshooting
| Topic | URL |
|---|---|
| Diagnose and fix Azure Carbon optimization issues | https://learn.microsoft.com/en-us/azure/carbon-optimization/troubleshooting |
Best Practices
| Topic | URL |
|---|---|
| Apply Azure Advisor recommendations to cut emissions | https://learn.microsoft.com/en-us/azure/carbon-optimization/reduce-emissions |
Security
| Topic | URL |
|---|---|
| Configure RBAC access for Azure Carbon optimization | https://learn.microsoft.com/en-us/azure/carbon-optimization/permissions |
Integrations & Coding Patterns
| Topic | URL |
|---|---|
| Export Azure Carbon optimization data via REST API | https://learn.microsoft.com/en-us/azure/carbon-optimization/api-export-data |
| Export Azure carbon data via Python REST integration | https://learn.microsoft.com/en-us/azure/carbon-optimization/tutorial-export-python |