Skip to content

Commit 300a2a3

Browse files
Merge pull request #312213 from asudbring/tsk555756-sfi-bastion
SFI security updates for virtual-network-multiple-ip-addresses-cli
2 parents 44a9daa + 95bdc16 commit 300a2a3

1 file changed

Lines changed: 3 additions & 21 deletions

File tree

articles/virtual-network/ip-services/virtual-network-multiple-ip-addresses-cli.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Assign multiple IP addresses to VMs - Azure CLI
33
titleSuffix: Azure Virtual Network
44
description: Learn how to create a virtual machine with multiple IP addresses using the Azure CLI.
55
services: virtual-network
6-
ms.date: 06/21/2024
6+
ms.date: 02/25/2026
77
ms.author: mbender
88
author: mbender-ms
99
ms.service: azure-virtual-network
@@ -114,27 +114,9 @@ Use [az network nsg create](/cli/azure/network/nsg#az-network-nsg-create) to cre
114114
--name myNSG
115115
```
116116

117-
### Create network security group rules
118-
119-
You create a rule to allow connections to the virtual machine on port 22 for SSH.
120-
121-
Use [az network nsg rule create](/cli/azure/network/nsg/rule#az-network-nsg-rule-create) to create the network security group rules.
122-
123-
```azurecli-interactive
124-
az network nsg rule create \
125-
--resource-group myResourceGroup \
126-
--nsg-name myNSG \
127-
--name myNSGRuleSSH \
128-
--protocol '*' \
129-
--direction inbound \
130-
--source-address-prefix '*' \
131-
--source-port-range '*' \
132-
--destination-address-prefix '*' \
133-
--destination-port-range 22 \
134-
--access allow \
135-
--priority 200
117+
> [!NOTE]
118+
> The default rules of the network security group block all inbound access from the internet, including SSH. To connect to the virtual machine, use Azure Bastion. For more information, see [Quickstart: Deploy Azure Bastion with default settings](../../bastion/quickstart-host-portal.md).
136119
137-
```
138120
## Create a network interface
139121

140122
You use [az network nic create](/cli/azure/network/nic#az-network-nic-create) to create the network interface for the virtual machine. The public IP addresses and the NSG created previously are associated with the NIC. The network interface is attached to the virtual network you created previously.

0 commit comments

Comments
 (0)