You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/tutorial-manage-vm.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,19 @@ Azure virtual machines provide a fully configurable and flexible computing envir
25
25
> * Resize a VM
26
26
> * View and understand VM state
27
27
28
-
This tutorial uses the CLI within the [Azure Cloud Shell](../../cloud-shell/overview.md), which is constantly updated to the latest version. To open the Cloud Shell, select **Try it** from the top of any code block.
28
+
This tutorial uses the CLI within the [Azure Cloud Shell](../../cloud-shell/overview.md), which is constantly updated to the latest version.
29
29
30
30
If you choose to install and use the CLI locally, this tutorial requires that you are running the Azure CLI version 2.0.30 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
31
31
32
32
## Create resource group
33
33
34
34
Create a resource group with the [az group create](/cli/azure/group) command.
35
35
36
-
An Azure resource group is a logical container into which Azure resources are deployed and managed. A resource group must be created before a virtual machine. In this example, a resource group named *myResourceGroupVM* is created in the *eastus* region.
36
+
An Azure resource group is a logical container into which Azure resources are deployed and managed. A resource group must be created before a virtual machine. In this example, a resource group named *myResourceGroupVM* is created in the *eastus3* region.
37
+
37
38
38
39
```azurecli-interactive
39
-
az group create --name myResourceGroupVM --location eastus
40
+
az group create --name myResourceGroupVM --location eastus3
40
41
```
41
42
42
43
The resource group is specified when creating or modifying a VM, which can be seen throughout this tutorial.
@@ -45,13 +46,13 @@ The resource group is specified when creating or modifying a VM, which can be se
45
46
46
47
Create a virtual machine with the [az vm create](/cli/azure/vm) command.
47
48
48
-
When you create a virtual machine, several options are available such as operating system image, disk sizing, and administrative credentials. The following example creates a VM named *myVM* that runs Ubuntu Server. A user account named *azureuser* is created on the VM, and SSH keys are generated if they do not exist in the default key location (*~/.ssh*):
49
+
When you create a virtual machine, several options are available such as operating system image, disk sizing, and administrative credentials. The following example creates a VM named *myVM* that runs SUSE Linux Enterprise Server (SLES). A user account named *azureuser* is created on the VM, and SSH keys are generated if they do not exist in the default key location (*~/.ssh*):
49
50
50
51
```azurecli-interactive
51
52
az vm create \
52
53
--resource-group myResourceGroupVM \
53
54
--name myVM \
54
-
--image UbuntuLTS \
55
+
--image SLES \
55
56
--admin-username azureuser \
56
57
--generate-ssh-keys
57
58
```
@@ -62,7 +63,7 @@ It may take a few minutes to create the VM. Once the VM has been created, the Az
> Canonical has changed the **Offer** names they use for the most recent versions. Before Ubuntu 20.04, the **Offer** name is UbuntuServer. For Ubuntu 20.04 the **Offer** name is `0001-com-ubuntu-server-focal` and for Ubuntu 22.04 it's `0001-com-ubuntu-server-jammy`.
141
143
@@ -163,6 +165,7 @@ The following table categorizes sizes into use cases.
163
165
|[High performance](../sizes-hpc.md)| H | Our most powerful CPU VMs with optional high-throughput network interfaces (RDMA). |
164
166
165
167
168
+
166
169
### Find available VM sizes
167
170
168
171
To see a list of VM sizes available in a particular region, use the [az vm list-sizes](/cli/azure/vm) command.
@@ -202,7 +205,7 @@ In the previous VM creation example, a size was not provided, which results in a
202
205
az vm create \
203
206
--resource-group myResourceGroupVM \
204
207
--name myVM3 \
205
-
--image UbuntuLTS \
208
+
--image SLES \
206
209
--size Standard_F4s \
207
210
--generate-ssh-keys
208
211
```
@@ -331,3 +334,4 @@ Advance to the next tutorial to learn about VM disks.
331
334
332
335
> [!div class="nextstepaction"]
333
336
> [Create and Manage VM disks](./tutorial-manage-disks.md)
0 commit comments