mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
az-vm: add page (#6222)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
parent
c46ebc0fa1
commit
9d221a36b7
1 changed files with 33 additions and 0 deletions
33
pages/common/az-vm.md
Normal file
33
pages/common/az-vm.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# az vm
|
||||
|
||||
> Manage virtual machines in Azure.
|
||||
> Part of `azure-cli`.
|
||||
> More information: <https://docs.microsoft.com/cli/azure/vm>.
|
||||
|
||||
- List details of availible Virtual Machines:
|
||||
|
||||
`az vm list`
|
||||
|
||||
- Create an `UbuntuServer 18.04 LTS` Virtual Machine and generate ssh keys:
|
||||
|
||||
`az vm create --resource-group {{rg}} --name {{vm_name}} --image {{Canonical:UbuntuServer:18.04-LTS:latest}} --admin-user {{azureuser}} --generate-ssh-keys`
|
||||
|
||||
- Stop a Virtual Machine:
|
||||
|
||||
`az vm stop --resource-group {{rg}} --name {{vm_name}}`
|
||||
|
||||
- Deallocate a Virtual Machine:
|
||||
|
||||
`az vm deallocate --resource-group {{rg}} --name {{vm_name}}`
|
||||
|
||||
- Start a Virtual Machine:
|
||||
|
||||
`az vm start --resource-group {{rg}} --name {{vm_name}}`
|
||||
|
||||
- Restart a Virtual Machine:
|
||||
|
||||
`az vm restart --resource-group {{rg}} --name {{vm_name}}`
|
||||
|
||||
- List VM images availiable in the Azure Marketplace:
|
||||
|
||||
`az vm image list`
|
Loading…
Add table
Reference in a new issue