Skip to content

Commit 1b26df8

Browse files
committed
Add Bastion connection note to all three tabs
1 parent 0785638 commit 1b26df8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

articles/virtual-network/ip-services/virtual-networks-static-private-ip.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ When you create a virtual machine (VM), it's automatically assigned a private IP
9090

9191
1. Select **Review + create**. Review the settings, and then select **Create**.
9292

93+
> [!NOTE]
94+
> The virtual machine is created without a public IP address and with no public inbound ports. 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).
95+
9396
# [Azure PowerShell](#tab/azurepowershell)
9497

9598
Use the following steps to create a resource group, virtual network, and virtual machine.
@@ -144,6 +147,9 @@ $nsg = @{
144147
New-AzNetworkSecurityGroup @nsg
145148
```
146149

150+
> [!NOTE]
151+
> 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).
152+
147153
### Create a virtual machine
148154

149155
Create a credential object for the virtual machine with [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential). Enter a username and password when prompted:
@@ -209,6 +215,9 @@ az network nsg create \
209215
--name myNSG
210216
```
211217

218+
> [!NOTE]
219+
> 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).
220+
212221
### Create a virtual machine
213222

214223
The following command creates a Linux virtual machine without a public IP address with [az vm create](/cli/azure/vm#az-vm-create). The `--generate-ssh-keys` parameter generates an SSH key pair for the VM:

0 commit comments

Comments
 (0)