az vm
Manage virtual machines in Azure. Part of
azure-cli(also known asaz). More information: https://learn.microsoft.com/cli/azure/vm.
- Display a table of available Virtual Machines:
az vm list --output table
- Create a virtual machine using the default Ubuntu image and generate SSH keys:
az vm create --image --admin-user --generate-ssh-keys
- Stop a Virtual Machine:
az vm stop
- Deallocate a Virtual Machine:
az vm deallocate
- Start a Virtual Machine:
az vm start
- Restart a Virtual Machine:
az vm restart
- List VM images available in the Azure Marketplace:
az vm image list
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
