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
This Azure CLI script sample creates a virtual network with two virtual machines (VM) that are members of an availability set. A load balancer directs traffic for two separate IP addresses to the two VMs. After running the script, you could deploy web server software to the VMs and host multiple web sites, each with its own IP address.
[!code-azurecli-interactive[main](../../../cli_scripts/load-balancer/load-balance-multiple-web-sites-vm/load-balance-multiple-web-sites-vm.sh"Load balance multiple web sites")]
This script uses the following commands to create a resource group, virtual network, load balancer, and all related resources. Each command in the table links to command specific documentation.
39
42
@@ -57,4 +60,4 @@ This script uses the following commands to create a resource group, virtual netw
57
60
58
61
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
59
62
60
-
Additional networking CLI script samples can be found in the [Azure Networking Overview documentation](../cli-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).
63
+
Additional networking CLI script samples can be found in the [Azure Networking Overview documentation](../cli-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).
Copy file name to clipboardExpand all lines: articles/load-balancer/scripts/load-balancer-linux-cli-sample-nlb.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,30 +9,36 @@ ms.service: load-balancer
9
9
ms.devlang: azurecli
10
10
ms.topic: sample
11
11
ms.workload: infrastructure
12
-
ms.date: 04/20/2018
12
+
ms.date: 03/04/2022
13
13
ms.author: allensu
14
14
ms.custom: devx-track-azurecli
15
15
---
16
16
17
17
# Azure CLI script example: Load balance traffic to VMs for high availability
18
18
19
-
This Azure CLI script example creates everything needed to run several Ubuntu virtual machines configured in a highly available and load balanced configuration. After running the script, you will have three virtual machines, joined to an Azure Availability Set, and accessible through an Azure Load Balancer.
This Azure CLI script example creates everything needed to run several Ubuntu virtual machines configured in a highly available and load balanced configuration. After running the script, you will have three virtual machines, joined to an Azure Availability Set, and accessible through an Azure Load Balancer.
This script uses the following commands to create a resource group, virtual machine, availability set, load balancer, and all related resources. Each command in the table links to command specific documentation.
38
44
@@ -56,4 +62,4 @@ This script uses the following commands to create a resource group, virtual mach
56
62
57
63
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
58
64
59
-
Additional Azure Networking CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
65
+
Additional Azure Networking CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
# Azure CLI script example: Load balance traffic to VMs within a specific availability zone
21
21
22
-
This Azure CLI script example creates everything needed to run several Ubuntu virtual machines configured in a highly available and load balanced configuration within a specific availability zone. After running the script, you will have three virtual machines in a single availability zones within a region that are accessible through an Azure Standard Load Balancer.
This Azure CLI script example creates everything needed to run several Ubuntu virtual machines configured in a highly available and load balanced configuration within a specific availability zone. After running the script, you will have three virtual machines in a single availability zones within a region that are accessible through an Azure Standard Load Balancer.
This script uses the following commands to create a resource group, virtual machine, availability set, load balancer, and all related resources. Each command in the table links to command specific documentation.
164
47
@@ -181,4 +64,4 @@ This script uses the following commands to create a resource group, virtual mach
181
64
182
65
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
183
66
184
-
Additional Azure Networking CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
67
+
Additional Azure Networking CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
0 commit comments