Skip to content

Commit 7f46e12

Browse files
asudbringCopilot
andcommitted
Add Bastion Basic for secure VM access
Co-authored-by: Copilot <[email protected]>
1 parent 4b313b2 commit 7f46e12

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

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

Lines changed: 32 additions & 1 deletion
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: 07/11/2025
1010
ms.author: mbender
1111
ms.custom:
1212
- mvc
@@ -69,13 +69,44 @@ az network vnet subnet create \
6969
--resource-group myResourceGroupAG \
7070
--vnet-name myVNet \
7171
--address-prefix 10.21.1.0/24
72+
az network vnet subnet create \
73+
--name AzureBastionSubnet \
74+
--resource-group myResourceGroupAG \
75+
--vnet-name myVNet \
76+
--address-prefix 10.21.2.0/24
7277
az network public-ip create \
7378
--resource-group myResourceGroupAG \
7479
--name myAGPublicIPAddress \
7580
--allocation-method Static \
7681
--sku Standard
7782
```
7883

84+
## Deploy Azure Bastion
85+
86+
Azure Bastion uses your browser to connect to VMs in your virtual network over secure shell (SSH) or remote desktop protocol (RDP) by using their private IP addresses. The VMs don't need public IP addresses, client software, or special configuration. For more information about Azure Bastion, see [Azure Bastion](/azure/bastion/bastion-overview).
87+
88+
>[!NOTE]
89+
>[!INCLUDE [Pricing](~/reusable-content/ce-skilling/azure/includes/bastion-pricing.md)]
90+
91+
Create a public IP address for the Azure Bastion host with `az network public-ip create`. Then create the Azure Bastion host with `az network bastion create`.
92+
93+
```azurecli-interactive
94+
az network public-ip create \
95+
--resource-group myResourceGroupAG \
96+
--name myBastionIP \
97+
--location eastus \
98+
--allocation-method Static \
99+
--sku Standard
100+
az network bastion create \
101+
--resource-group myResourceGroupAG \
102+
--name myBastionHost \
103+
--vnet-name myVNet \
104+
--public-ip-address myBastionIP \
105+
--location eastus \
106+
--sku Basic \
107+
--no-wait
108+
```
109+
79110
## Create the backend servers
80111

81112
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.

0 commit comments

Comments
 (0)