Skip to content

Commit 670593c

Browse files
Merge pull request #232645 from mattmcinnes/patch-47
[Doc-a-thon] Update Create a complete Linux virtual machine with the Azure CLI
2 parents efa3066 + 886357f commit 670593c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

articles/virtual-machines/linux/create-cli-complete.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ ms.service: virtual-machines
66
ms.custom: devx-track-azurecli
77
ms.collection: linux
88
ms.topic: how-to
9-
ms.date: 12/14/2017
9+
ms.date: 3/29/2023
1010
ms.author: cynthn
11+
ms.reviewer: mattmcinnes
1112
---
1213
# Create a complete Linux virtual machine with the Azure CLI
1314

@@ -132,15 +133,15 @@ Output:
132133

133134

134135
## Create a network security group
135-
To control the flow of traffic in and out of your VMs, you apply a network security group to a virtual NIC or subnet. The following example uses [az network nsg create](/cli/azure/network/nsg) to create a network security group named *myNetworkSecurityGroup*:
136+
To control the flow of traffic in and out of your VMs, apply a network security group to a virtual NIC or subnet. The following example uses [az network nsg create](/cli/azure/network/nsg) to create a network security group named *myNetworkSecurityGroup*:
136137

137138
```azurecli
138139
az network nsg create \
139140
--resource-group myResourceGroup \
140141
--name myNetworkSecurityGroup
141142
```
142143

143-
You define rules that allow or deny specific traffic. To allow inbound connections on port 22 (to enable SSH access), create an inbound rule with [az network nsg rule create](/cli/azure/network/nsg/rule). The following example creates a rule named *myNetworkSecurityGroupRuleSSH*:
144+
You define rules that allow or deny specific traffic. To allow inbound connections on port 22 (to enable [SSH access](/azure/virtual-machines/linux-vm-connect), create an inbound rule with [az network nsg rule create](/cli/azure/network/nsg/rule). The following example creates a rule named *myNetworkSecurityGroupRuleSSH*:
144145

145146
```azurecli
146147
az network nsg rule create \
@@ -468,7 +469,7 @@ The output notes fault domains and update domains:
468469

469470

470471
## Create a VM
471-
You've created the network resources to support Internet-accessible VMs. Now create a VM and secure it with an SSH key. In this example, let's create an Ubuntu VM based on the most recent LTS. You can find additional images with [az vm image list](/cli/azure/vm/image), as described in [finding Azure VM images](cli-ps-findimage.md).
472+
You've created the network resources to support Internet-accessible VMs. Now create a VM and secure it with an [SSH key](/azure/virtual-machines/linux/create-ssh-keys-detailed). In this example, let's create an Ubuntu VM based on the most recent LTS. You can find additional images with [az vm image list](/cli/azure/vm/image), as described in [finding Azure VM images](cli-ps-findimage.md).
472473

473474
Specify an SSH key to use for authentication. If you do not have an SSH public key pair, you can [create them](mac-create-ssh-keys.md) or use the `--generate-ssh-keys` parameter to create them for you. If you already have a key pair, this parameter uses existing keys in `~/.ssh`.
474475

@@ -538,7 +539,7 @@ See "man sudo_root" for details.
538539
azureuser@myVM:~$
539540
```
540541
541-
You can install NGINX and see the traffic flow to the VM. Install NGINX as follows:
542+
You can install [NGINX](https://nginx.org/en/) and see the traffic flow to the VM. Install NGINX as follows:
542543
543544
```bash
544545
sudo apt-get install -y nginx

0 commit comments

Comments
 (0)