From 7128f5b8373de9aefb6769d431b266bdd29e2962 Mon Sep 17 00:00:00 2001 From: danielmeppiel Date: Wed, 2 Jul 2025 11:02:02 +0200 Subject: [PATCH] Add Azure Cost Optimization prompt and enhance IaC file handling instructions --- README.md | 3 +++ prompts/az-cost-optimize.prompt.md | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 59584ae..c7f2af9 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/prompts/az-cost-optimize.prompt.md b/prompts/az-cost-optimize.prompt.md index 024da1e..546bda5 100644 --- a/prompts/az-cost-optimize.prompt.md +++ b/prompts/az-cost-optimize.prompt.md @@ -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