Skip to content

Commit a4a2dba

Browse files
Merge pull request #234119 from divargas-msft/patch-1
[Doc-a-thon] Updating cli-manage.md
2 parents f6ea046 + e935a60 commit a4a2dba

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

articles/virtual-machines/linux/cli-manage.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: cynthn
55
ms.service: virtual-machines
66
ms.custom: devx-track-azurecli, devx-track-arm-template
77
ms.topic: how-to
8-
ms.date: 05/12/2017
8+
ms.date: 04/11/2023
99
ms.author: cynthn
1010
---
1111
# Common Azure CLI commands for managing Azure resources
@@ -17,16 +17,19 @@ The Azure CLI allows you to create and manage your Azure resources on macOS, Lin
1717
This article requires the Azure CLI version 2.0.4 or later. Run `az --version` to find the version. If you need to upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli). You can also use [Cloud Shell](../../cloud-shell/quickstart.md) from your browser.
1818

1919
## Basic Azure Resource Manager commands in Azure CLI
20+
2021
For more detailed help with specific command line switches and options, you can use the online command help and options by typing `az <command> <subcommand> --help`.
2122

2223
### Create VMs
24+
2325
| Task | Azure CLI commands |
2426
| --- | --- |
2527
| Create a resource group | `az group create --name myResourceGroup --location eastus` |
26-
| Create a Linux VM | `az vm create --resource-group myResourceGroup --name myVM --image ubuntults` |
28+
| Create a Linux VM | `az vm create --resource-group myResourceGroup --name myVM --image LinuxImageName` |
2729
| Create a Windows VM | `az vm create --resource-group myResourceGroup --name myVM --image win2016datacenter` |
2830

2931
### Manage VM state
32+
3033
| Task | Azure CLI commands |
3134
| --- | --- |
3235
| Start a VM | `az vm start --resource-group myResourceGroup --name myVM` |
@@ -37,6 +40,7 @@ For more detailed help with specific command line switches and options, you can
3740
| Delete a VM | `az vm delete --resource-group myResourceGroup --name myVM` |
3841

3942
### Get VM info
43+
4044
| Task | Azure CLI commands |
4145
| --- | --- |
4246
| List VMs | `az vm list` |
@@ -45,6 +49,7 @@ For more detailed help with specific command line switches and options, you can
4549
| Get all available VM sizes | `az vm list-sizes --location eastus` |
4650

4751
## Disks and images
52+
4853
| Task | Azure CLI commands |
4954
| --- | --- |
5055
| Add a data disk to a VM | `az vm disk attach --resource-group myResourceGroup --vm-name myVM --disk myDataDisk --size-gb 128 --new` |
@@ -54,6 +59,6 @@ For more detailed help with specific command line switches and options, you can
5459
| Create image of a VM | `az image create --resource-group myResourceGroup --source myVM --name myImage` |
5560
| Create VM from image | `az vm create --resource-group myResourceGroup --name myNewVM --image myImage` |
5661

57-
5862
## Next steps
63+
5964
For additional examples of the CLI commands, see the [Create and Manage Linux VMs with the Azure CLI](tutorial-manage-vm.md) tutorial.

0 commit comments

Comments
 (0)