跳到正文
cccskills
免费在 GitHub 公开

azure-compute

Recommend Azure VM sizes, VM Scale Sets (VMSS), and configurations based on workload requirements, performance needs, and budget constraints. No Azure account required — uses public documentation and the Azure Retail Prices API. WHEN: recommend VM size, which VM should I use, choose Azure VM, VM ...

中文简介正在准备中。当前显示原文说明。

集成工具Azure
查看安装方法

包含的文件(4)

  • SKILL.md9.8 KB
  • references/retail-prices-api.md6.3 KB
  • references/vm-families.md4.9 KB
  • references/vmss-guide.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Azure Compute Skill

Recommend Azure VM sizes, VM Scale Sets (VMSS), and configurations by analyzing workload type, performance requirements, scaling needs, and budget. No Azure subscription required — all data comes from public Microsoft documentation and the unauthenticated Retail Prices API.

When to Use This Skill

  • User asks which Azure VM or VMSS to choose for a workload
  • User needs VM size recommendations for web, database, ML, batch, HPC, or other workloads
  • User wants to compare VM families, sizes, or pricing tiers
  • User asks about trade-offs between VM options (cost vs performance)
  • User needs a cost estimate for Azure VMs without an Azure account
  • User asks whether to use a single VM or a scale set
  • User needs autoscaling, high availability, or load-balanced VM recommendations
  • User asks about VMSS orchestration modes (Flexible vs Uniform)

Workflow

Use reference files for initial filtering

CRITICAL: then always verify with live documentation from learn.microsoft.com before making final recommendations. If web_fetch fails, use reference files as fallback but warn the user the information may be stale.

Step 1: Gather Requirements

Ask the user for (infer when possible):

RequirementExamples
Workload typeWeb server, relational DB, ML training, batch processing, dev/test
vCPU / RAM needs"4 cores, 16 GB RAM" or "lightweight" / "heavy"
GPU needed?Yes → GPU families; No → general/compute/memory
Storage needsHigh IOPS, large temp disk, premium SSD
Budget priorityCost-sensitive, performance-first, balanced
OSLinux or Windows (affects pricing)
RegionAffects availability and price
Instance countSingle instance, fixed count, or variable/dynamic
Scaling needsNone, manual scaling, autoscale based on metrics or schedule
Availability needsBest-effort, fault-domain isolation, cross-zone HA
Load balancingNot needed, Azure Load Balancer (L4), Application Gateway (L7)

Step 2: Determine VM vs VMSS

Workflow:

  1. Review VMSS Guide to understand when VMSS vs single VM is appropriate
  2. Use the gathered requirements to decide which approach fits best
  3. REQUIRED: If recommending VMSS, fetch current documentation to verify capabilities:
    web_fetch https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/overview
    web_fetch https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-autoscale-overview
    
  4. If web_fetch fails, proceed with reference file guidance but include this warning:

    Unable to verify against latest Azure documentation. Recommendation based on reference material that may not reflect recent updates.

Needs autoscaling?
├─ Yes → VMSS
├─ No
│  ├─ Multiple identical instances needed?
│  │  ├─ Yes → VMSS
│  │  └─ No
│  │     ├─ High availability across fault domains / zones?
│  │     │  ├─ Yes, many instances → VMSS
│  │     │  └─ Yes, 1-2 instances → VM + Availability Zone
│  │     └─ Single instance sufficient? → VM
SignalRecommendationWhy
Autoscale on CPU, memory, or scheduleVMSSBuilt-in autoscale; no custom automation needed
Stateless web/API tier behind a load balancerVMSSHomogeneous fleet with automatic distribution
Batch / parallel processing across many nodesVMSSScale out on demand, scale to zero when idle
Mixed VM sizes in one groupVMSS (Flexible)Flexible orchestration supports mixed SKUs
Single long-lived server (jumpbox, AD DC)VMNo scaling benefit; simpler management
Unique per-instance config requiredVMScale sets assume homogeneous configuration
Stateful workload, tightly-coupled clusterVM (or VMSS case-by-case)Evaluate carefully; VMSS Flexible can work for some stateful patterns

Warning: If the user is unsure, default to single VM for simplicity. Recommend VMSS only when scaling, HA, or fleet management is clearly needed.

Step 3: Select VM Family

Workflow:

  1. Review VM Family Guide to identify 2-3 candidate VM families that match the workload requirements

  2. REQUIRED: verify specifications for your chosen candidates by fetching current documentation:

    web_fetch https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/<family-category>/<series-name>
    

    Examples:

    • B-series: https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/b-family
    • D-series: https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/ddsv5-series
    • GPU: https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/gpu-accelerated/nc-family
  3. If considering Spot VMs, also fetch:

    web_fetch https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/use-spot
    
  4. If web_fetch fails, proceed with reference file guidance but include this warning:

    Unable to verify against latest Azure documentation. Recommendation based on reference material that may not reflect recent updates or limitations (e.g., Spot VM compatibility).

This step applies to both single VMs and VMSS since scale sets use the same VM SKUs.

Step 4: Look Up Pricing

Query the Azure Retail Prices API — Retail Prices API Guide

Tip: VMSS has no extra charge — pricing is per-VM instance. Use the same VM pricing from the API and multiply by the expected instance count to estimate VMSS cost. For autoscaling workloads, estimate cost at both the minimum and maximum instance count.

Step 5: Present Recommendations

Provide 2–3 options with trade-offs:

ColumnPurpose
Hosting ModelVM or VMSS (with orchestration mode if VMSS)
VM SizeARM SKU name (e.g., Standard_D4s_v5)
vCPUs / RAMCore specs
Instance Count1 for VM; min–max range for VMSS with autoscale
Estimated $/hrPer-instance pay-as-you-go from API
WhyFit for the workload
Trade-offWhat the user gives up

Tip: Always explain why a family fits and what the user trades off (cost vs cores, burstable vs dedicated, single VM simplicity vs VMSS scalability, etc.).

For VMSS recommendations, also mention:

  • Recommended orchestration mode (Flexible for most new workloads)
  • Autoscale strategy (metric-based, schedule-based, or both)
  • Load balancer type (Azure Load Balancer for L4, Application Gateway for L7/TLS)

Step 6: Offer Next Steps

Error Handling

ScenarioAction
API returns empty resultsBroaden filters — check armRegionName, serviceName, armSkuName spelling
User unsure of workload typeAsk clarifying questions; default to General Purpose D-series
Region not specifiedUse eastus as default; note prices vary by region
Unclear if VM or VMSS neededAsk about scaling and instance count; default to single VM if unsure
User asks VMSS pricing directlyUse same VM pricing API — VMSS has no extra charge; multiply by instance count

References

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

_shared

免费

Shared SDD references for installed skills. Not invokable.

中文简介正在准备中。当前显示原文说明。

JantonioFC/skillsbank92026年8月4日 更新

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

中文简介正在准备中。当前显示原文说明。

JantonioFC/skillsbank92026年8月4日 更新

007

免费

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

中文简介正在准备中。当前显示原文说明。

JantonioFC/skillsbank92026年8月4日 更新

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

中文简介正在准备中。当前显示原文说明。

JantonioFC/skillsbank92026年8月4日 更新

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

中文简介正在准备中。当前显示原文说明。

JantonioFC/skillsbank92026年8月4日 更新

2d-games

免费

2D game development principles. Sprites, tilemaps, physics, camera.

中文简介正在准备中。当前显示原文说明。

JantonioFC/skillsbank92026年8月4日 更新

查看 JantonioFC 的全部技能

报告此技能的问题