Skip to content

Commit 797e3f8

Browse files
Merge pull request #312318 from asudbring/tsk556109-sfi-bastion
SFI Bastion update: quick-create-cli.md (App GW)
2 parents ad0e60c + d71192e commit 797e3f8

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

articles/application-gateway/quick-create-cli.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: application-gateway
66
author: mbender-ms
77
ms.service: azure-application-gateway
88
ms.topic: quickstart
9-
ms.date: 05/30/2024
9+
ms.date: 02/25/2026
1010
ms.author: mbender
1111
ms.custom:
1212
- mvc
@@ -76,6 +76,19 @@ az network public-ip create \
7676
--sku Standard
7777
```
7878

79+
## Create a network security group
80+
81+
Create a network security group with [az network nsg create](/cli/azure/network/nsg#az-network-nsg-create). The default rules in the network security group block all inbound access from the internet.
82+
83+
```azurecli-interactive
84+
az network nsg create \
85+
--resource-group myResourceGroupAG \
86+
--name myNSG
87+
```
88+
89+
> [!NOTE]
90+
> 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).
91+
7992
## Create the backend servers
8093

8194
A backend can have NICs, virtual machine scale sets, public IP addresses, internal IP addresses, fully qualified domain names (FQDN), and multitenant backends like Azure App Service. In this example, you create two virtual machines to use as backend servers for the application gateway. You also install NGINX on the virtual machines to test the application gateway.
@@ -137,12 +150,14 @@ for i in `seq 1 2`; do
137150
--resource-group myResourceGroupAG \
138151
--name myNic$i \
139152
--vnet-name myVNet \
140-
--subnet myBackendSubnet
153+
--subnet myBackendSubnet \
154+
--network-security-group myNSG
141155
az vm create \
142156
--resource-group myResourceGroupAG \
143157
--name myVM$i \
144158
--nics myNic$i \
145159
--image Ubuntu2204 \
160+
--public-ip-address "" \
146161
--admin-username azureuser \
147162
--generate-ssh-keys \
148163
--custom-data cloud-init.txt

0 commit comments

Comments
 (0)