You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/tutorial-create-route-table-portal.md
+39-4Lines changed: 39 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,6 @@ $rg = @{
109
109
ResourceGroupName = "test-rg"
110
110
Location = "EastUS2"
111
111
}
112
-
113
112
New-AzResourceGroup @rg
114
113
```
115
114
@@ -126,7 +125,7 @@ $vnet = @{
126
125
$virtualNetwork = New-AzVirtualNetwork @vnet
127
126
```
128
127
129
-
Create three subnets by creating three subnet configurations with [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig). The following example creates three subnet configurations for *Public*, *Private*, and *DMZ*subnets:
128
+
Create four subnets by creating four subnet configurations with [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig). The following example creates four subnet configurations for *Public*, *Private*, *DMZ*, and Azure Bastion subnets.
@@ -158,6 +164,35 @@ Write the subnet configurations to the virtual network with [Set-AzVirtualNetwor
158
164
$virtualNetwork | Set-AzVirtualNetwork
159
165
```
160
166
167
+
### Create Azure Bastion
168
+
169
+
Create a public IP address for the Azure Bastion host with [New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress). The following example creates a public IP address named *public-ip-bastion* in the *vnet-1* virtual network.
170
+
171
+
```azurepowershell-interactive
172
+
$publicIpParams = @{
173
+
ResourceGroupName = "test-rg"
174
+
Name = "public-ip-bastion"
175
+
Location = "EastUS2"
176
+
AllocationMethod = "Static"
177
+
Sku = "Standard"
178
+
}
179
+
New-AzPublicIpAddress @publicIpParams
180
+
```
181
+
182
+
Create an Azure Bastion host with [New-AzBastion](/powershell/module/az.network/new-azbastion). The following example creates an Azure Bastion host named *bastion* in the *AzureBastionSubnet* subnet of the *vnet-1* virtual network. Azure Bastion is used to securely connect Azure virtual machines without exposing them to the public internet.
0 commit comments