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
When you create an internal load balancer, a virtual network is configured as the network for the load balancer. Before you deploy VMs and test your load balancer, create the supporting virtual network resources.
39
39
40
-
Create a virtual network for the backend virtual machines
40
+
-Create a public IP for the NAT gateway
41
41
42
-
Create a network security group to define inbound connections to your virtual network
42
+
-Create a virtual network for the backend virtual machines
43
43
44
-
Create an Azure Bastion host to securely manage the virtual machines in the backend pool
44
+
- Create a network security group to define inbound connections to your virtual network
45
+
46
+
- Create an Azure Bastion host to securely manage the virtual machines in the backend pool
47
+
48
+
## Create a public IP address
49
+
50
+
Use [New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress) to create a public IP address for the NAT gateway.
51
+
52
+
```azurepowershell-interactive
53
+
## Create public IP address for NAT gateway and place IP in variable ##
54
+
$gwpublicip = @{
55
+
Name = 'myNATgatewayIP'
56
+
ResourceGroupName = 'CreatePubLBQS-rg'
57
+
Location = 'eastus'
58
+
Sku = 'Standard'
59
+
AllocationMethod = 'static'
60
+
Zone = 1,2,3
61
+
}
62
+
$gwpublicip = New-AzPublicIpAddress @gwpublicip
63
+
```
64
+
65
+
To create a zonal public IP address in zone 1, use the following command:
66
+
67
+
```azurepowershell-interactive
68
+
## Create a zonal public IP address for NAT gateway and place IP in variable ##
@@ -56,15 +91,6 @@ Create an Azure Bastion host to securely manage the virtual machines in the back
56
91
* Use [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig) to associate the NAT gateway to the subnet of the virtual network
0 commit comments