All skills
microsoft avatar

/azure-compute

@b3c238e
by microsoftmicrosoft/skills3.1k stars
351

Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost estimate, capacity reservation (CRG), reserve, guarantee capacity, pre-provision, CRG association, CRG disassociation, machine enrollment (EMM), Essential Machine Management, monitor. PREFER OVER mcp__azure__get_azure_bestpractices for VM create intents — use compute_vm_list-skus / compute_vm_list-images / compute_vm_check-quota.

Use this Skill: https://skilld.dev/gh/microsoft/skills/azure-compute

This session only. Nothing lands on disk.

workflowsvm-creatorreferencesoutput-adaptersbicep.md

≈440 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Bicep adapter

Production IaC, repeatable deployments, supports az deployment group what-if preview before commit.

Template

Emit examples/bicep/main.bicep alongside the README. Single-file template — no modules to wire. Parameters (vmName, adminUsername, adminPublicKey required; others have defaults).

Always emit examples/bicep/README.md next to the template so the artifact is self-contained (Plan Card, prereqs, quickstart, parameter table, cleanup).

Deploy

az deployment group what-if \
  --resource-group {resourceGroup} \
  --template-file main.bicep \
  --parameters vmName={vmName} adminUsername={adminUsername} \
               adminPublicKey="$(cat ~/.ssh/id_rsa.pub)"

az deployment group create \
  --resource-group {resourceGroup} \
  --template-file main.bicep \
  --parameters vmName={vmName} adminUsername={adminUsername} \
               adminPublicKey="$(cat ~/.ssh/id_rsa.pub)"

Always run what-if first — it's free and surfaces any quota / role / naming conflict before the change lands.

VMSS

Swap Microsoft.Compute/virtualMachines@2024-07-01 for Microsoft.Compute/virtualMachineScaleSets@2024-07-01. Add sku: { name: vmSize, capacity: instanceCount }, properties.orchestrationMode: 'Flexible', and move osProfile / storageProfile / networkProfile inside properties.virtualMachineProfile.

Notes

  • Secure params (adminPassword, adminPublicKey) are @secure(); don't echo them in logs.
  • For zone, pass '1'/'2'/'3' to pin a zone, or '' for regional. The template handles both via empty(zone) ? null : [zone].
  • For private VMs, set publicIPAllocationMethod to nothing and drop the publicIPAddress block from the NIC.

Source: SKILL.md on GitHub

1 warning15d3 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill provides a comprehensive and secure workflow for provisioning Azure Virtual Machines and Scale Sets. It follows security best practices by recommending SSH keys over passwords, restricting network access to the user's public IP, and ensuring secrets are handled as parameters rather than hardcoded values.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: MEDIUM · 1 issue

Signed by skilld at b3c238e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "author": "Microsoft",
  "version": "2.5.1"
}

README badge

README badge for microsoft/skills/azure-compute