Add Azure Cost Optimization prompt and enhance IaC file handling instructions

This commit is contained in:
danielmeppiel 2025-07-02 11:02:02 +02:00
parent fdca96c3c9
commit 7128f5b837
2 changed files with 6 additions and 2 deletions

View File

@ -59,6 +59,9 @@ Ready-to-use prompt templates for specific development scenarios and tasks, defi
- [My Issues](prompts/my-issues.prompt.md)
- [My Pull Requests](prompts/my-pull-requests.prompt.md)
### FinOps
- [Azure Cost Optimize](prompts/az-cost-optimize.prompt.md) - Analyze Azure resources used in the app (IaC files and/or resources in a target rg) and optimize costs - creating GitHub issues for identified optimizations.
> 💡 **Usage**: Use `/prompt-name` in VS Code chat, run `Chat: Run Prompt` command, or hit the run button while you have a prompt open.

View File

@ -21,7 +21,7 @@ This workflow analyzes Infrastructure-as-Code (IaC) files and Azure resources to
**Process**:
1. **Load Best Practices**:
- Execute `azmcp-bestpractices-get` to get some of the latest Azure optimization guidelines. This may not cover all scenarios but provides a foundation.
- Use these practices to inform subsequent analysis and recommendations as possible
- Use these practices to inform subsequent analysis and recommendations as much as possible
- Reference best practices in optimization recommendations, either from the MCP tool output or general Azure documentation
### Step 2: Discover Azure Infrastructure
@ -50,7 +50,8 @@ This workflow analyzes Infrastructure-as-Code (IaC) files and Azure resources to
- Parse resource definitions to understand intended configurations
- Compare against discovered resources to identify discrepancies
- Note presence of IaC files for implementation recommendations later on
- Do NOT use any other file from the repository, only IaC files. Using other files like markdown or text files is NOT allowed as it is not a source of truth.
- Do NOT use any other file from the repository, only IaC files. Using other files is NOT allowed as it is not a source of truth.
- If you do not find IaC files, then STOP and report no IaC files found to the user.
3. **Configuration Analysis**:
- Extract current SKUs, tiers, and settings for each resource