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
The following table includes links to bash scripts built using the Azure CLI.
19
19
20
-
*[Load balance traffic to VMs for high availability](./scripts/load-balancer-linux-cli-sample-nlb.md)
21
-
22
-
Creates several virtual machines in a highly available and load balanced configuration.
23
-
24
-
*[Load balance VMs across availability zones](./scripts/load-balancer-linux-cli-sample-zone-redundant-frontend.md)
25
-
26
-
Creates three VMs in different availability zones within a region and Standard Load Balancer with a zone-redundant frontend IP address. This load balancer configuration helps to protect your apps and data from an unlikely failure or loss of an entire datacenter.
27
-
28
-
*[Load balance VMs within a specific availability zone](./scripts/load-balancer-linux-cli-sample-zonal-frontend.md)
29
-
30
-
Creates three VMs, a Standard Load Balancer with zonal frontend IP that helps align data path and resources in a single zone for a given region.
31
-
32
-
*[Load balance multiple websites on VMs](./scripts/load-balancer-linux-cli-load-balance-multiple-websites-vm.md)
33
-
34
-
Creates two VMs with multiple IP configurations, joined to an Azure Availability Set, accessible through an Azure Load Balancer.
20
+
| Script | Description |
21
+
|-|-|
22
+
|[Load balance traffic to VMs for high availability](./scripts/load-balancer-linux-cli-sample-nlb.md)| Creates several virtual machines in a highly available and load balanced configuration.|
23
+
|[Load balance VMs across availability zones](./scripts/load-balancer-linux-cli-sample-zone-redundant-frontend.md)| Creates three VMs in different availability zones within a region and Standard Load Balancer with a zone-redundant frontend IP address. This load balancer configuration helps to protect your apps and data from an unlikely failure or loss of an entire datacenter. |
24
+
|[Load balance VMs within a specific availability zone](./scripts/load-balancer-linux-cli-sample-zonal-frontend.md)| Creates three VMs, a Standard Load Balancer with zonal frontend IP that helps align data path and resources in a single zone for a given region. |
25
+
|[Load balance multiple websites on VMs](./scripts/load-balancer-linux-cli-load-balance-multiple-websites-vm.md)| Creates two VMs with multiple IP configurations, joined to an Azure Availability Set, accessible through an Azure Load Balancer. |
@@ -46,12 +46,12 @@ This script uses the following commands to create a resource group, virtual netw
46
46
|[az network vnet create](/cli/azure/network/vnet#az-network-vnet-create)| Creates an Azure virtual network and subnet. |
47
47
|[az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create)| Creates a public IP address with a static IP address and an associated DNS name. |
48
48
|[az network lb create](/cli/azure/network/lb#az-network-lb-create)| Creates an Azure Load Balancer. |
49
-
|[az network lb probe create](/cli/azure/network/lb/probe#az-network-lb-probe-create)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic is not routed to the VM. |
50
-
|[az network lb rule create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates a load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it is routed to port 80 one of the VMs in the load balancer set. |
49
+
|[az network lb probe create](/cli/azure/network/lb/probe#az-network-lb-probe-create)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic isn't routed to the VM. |
50
+
|[az network lb rule create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates a load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it's routed to port 80 one of the VMs in the load balancer set. |
51
51
|[az network lb frontend-ip create](/cli/azure/network/lb/frontend-ip#az-network-lb-frontend-ip-create)| Create a frontend IP address for the Load Balancer. |
52
52
|[az network lb address-pool create](/cli/azure/network/lb/address-pool#az-network-lb-address-pool-create)| Creates a backend address pool. |
53
53
|[az network nic create](/cli/azure/network/nic#az-network-nic-create)| Creates a virtual network card and attaches it to the virtual network, and subnet. |
54
-
|[az vm availability-set create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources such that if failure occurs, the entire set is not effected. |
54
+
|[az vm availability-set create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources such that if failure occurs, the entire set isn't affected. |
55
55
|[az network nic ip-config create](/cli/azure/network/nic/ip-config#az-network-nic-ip-config-create)| Creates an IP configuration. You must have the Microsoft.Network/AllowMultipleIpConfigurationsPerNic feature enabled for your subscription. Only one configuration may be designated as the primary IP configuration per NIC, using the --make-primary flag. |
56
56
|[az vm create](/cli/azure/vm/availability-set#az-vm-availability-set-create)| Creates the virtual machine and connects it to the network card, virtual network, subnet, and NSG. This command also specifies the virtual machine image to be used and administrative credentials. |
57
57
|[az group delete](/cli/azure/vm/extension#az-vm-extension-set)| Deletes a resource group including all nested resources. |
@@ -60,4 +60,4 @@ This script uses the following commands to create a resource group, virtual netw
60
60
61
61
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
62
62
63
-
Additional networking CLI script samples can be found in the [Azure Networking Overview documentation](../cli-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).
63
+
Other 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
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@ ms.service: load-balancer
9
9
ms.devlang: azurecli
10
10
ms.topic: sample
11
11
ms.workload: infrastructure
12
-
ms.date: 03/04/2022
12
+
ms.date: 02/28/2023
13
13
ms.author: mbender
14
-
ms.custom: devx-track-azurecli
14
+
ms.custom: devx-track-azurecli, engagement-fy23
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.
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'll have three virtual machines, joined to an Azure Availability Set, and accessible through an Azure Load Balancer.
@@ -44,22 +44,22 @@ This script uses the following commands to create a resource group, virtual mach
44
44
45
45
| Command | Notes |
46
46
|---|---|
47
-
|[az group create](/cli/azure/group#az-group-create)| Creates a resource group in which all resources are stored. |
47
+
|[az group create](/cli/azure/group#az-group-create)| Creates a resource group for storing all resources. |
48
48
|[az network vnet create](/cli/azure/network/vnet#az-network-vnet-create)| Creates an Azure virtual network and subnet. |
49
49
|[az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create)| Creates a public IP address with a static IP address and an associated DNS name. |
50
50
|[az network lb create](/cli/azure/network/lb#az-network-lb-create)| Creates an Azure load balancer. |
51
-
|[az network lb probe create](/cli/azure/network/lb/probe#az-network-lb-probe-create)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic is not routed to the VM. |
52
-
|[az network lb rule create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates a load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it is routed to port 80 one of the VMs in the LB set. |
53
-
|[az network lb inbound-nat-rule create](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-create)| Creates load balancer Network Address Translation (NAT) rule. NAT rules map a port of the load balancer to a port on a VM. In this sample, a NAT rule is created for SSH traffic to each VM in the load balancer set. |
51
+
|[az network lb probe create](/cli/azure/network/lb/probe#az-network-lb-probe-create)| Creates a load balancer probe. A load balancer probe monitors each VM in the load balancer set. If any VM becomes inaccessible, traffic no longer routes to the VM. |
52
+
|[az network lb rule create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates a load balancer rule. This sample creates a rule for port 80. As HTTP traffic arrives at the load balancer, traffic routes to port 80 on one of the VMs in the LB set. |
53
+
|[az network lb inbound-nat-rule create](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-create)| Creates load balancer Network Address Translation (NAT) rule. NAT rules map a port of the load balancer to a port on a VM. This sample creates a NAT rule for SSH traffic to each VM in the load balancer set. |
54
54
|[az network nsg create](/cli/azure/network/nsg#az-network-nsg-create)| Creates a network security group (NSG), which is a security boundary between the internet and the virtual machine. |
55
-
|[az network nsg rule create](/cli/azure/network/nsg/rule#az-network-nsg-rule-create)| Creates an NSG rule to allow inbound traffic. In this sample, port 22 is opened for SSH traffic. |
55
+
|[az network nsg rule create](/cli/azure/network/nsg/rule#az-network-nsg-rule-create)| Creates an NSG rule to allow inbound traffic. This sample creates a rule opening port 22 for SSH traffic. |
56
56
|[az network nic create](/cli/azure/network/nic#az-network-nic-create)| Creates a virtual network card and attaches it to the virtual network, subnet, and NSG. |
57
-
|[az vm availability-set create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources such that if failure occurs, the entire set is not effected. |
58
-
|[az vm create](/cli/azure/vm#az-vm-create)| Creates the virtual machine and connects it to the network card, virtual network, subnet, and NSG. This command also specifies the virtual machine image to be used and administrative credentials. |
57
+
|[az vm availability-set create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources so a failure doesn't affect the entire set. |
58
+
|[az vm create](/cli/azure/vm#az-vm-create)| Creates the virtual machine and connects it to the network card, virtual network, subnet, and NSG. This command also specifies the virtual machine image used and administrative credentials. |
59
59
|[az group delete](/cli/azure/vm/extension#az-vm-extension-set)| Deletes a resource group including all nested resources. |
60
60
61
61
## Next steps
62
62
63
63
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
64
64
65
-
Additional Azure Networking CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
65
+
Find more Azure Networking CLI script samples in the [Azure Networking documentation](../cli-samples.md).
Copy file name to clipboardExpand all lines: articles/load-balancer/scripts/load-balancer-linux-cli-sample-zonal-frontend.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,14 @@ ms.devlang: azurecli
12
12
ms.topic: sample
13
13
ms.tgt_pltfrm:
14
14
ms.workload: infrastructure
15
-
ms.date: 03/04/2022
15
+
ms.date: 02/28/2023
16
16
ms.author: mbender
17
-
ms.custom: devx-track-azurecli
17
+
ms.custom: devx-track-azurecli, engagement-fy23
18
18
---
19
19
20
20
# 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.
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'll have three virtual machines in a single availability zone within a region that are accessible through an Azure Standard Load Balancer.
@@ -51,8 +51,8 @@ This script uses the following commands to create a resource group, virtual mach
51
51
|[az network vnet create](/cli/azure/network/vnet#az-network-vnet-create)| Creates an Azure virtual network and subnet. |
52
52
|[az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create)| Creates a public IP address with a static IP address and an associated DNS name. |
53
53
|[az network lb create](/cli/azure/network/lb#az-network-lb-create)| Creates an Azure load balancer. |
54
-
|[az network lb probe create](/cli/azure/network/lb/probe#az-network-lb-probe-create)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic is not routed to the VM. |
55
-
|[az network lb rule create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates a load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it is routed to port 80 one of the VMs in the LB set. |
54
+
|[az network lb probe create](/cli/azure/network/lb/probe#az-network-lb-probe-create)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic isn't routed to the VM. |
55
+
|[az network lb rule create](/cli/azure/network/lb/rule#az-network-lb-rule-create)| Creates a load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it's routed to port 80 one of the VMs in the LB set. |
56
56
|[az network lb inbound-nat-rule create](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-create)| Creates load balancer Network Address Translation (NAT) rule. NAT rules map a port of the load balancer to a port on a VM. In this sample, a NAT rule is created for SSH traffic to each VM in the load balancer set. |
57
57
|[az network nsg create](/cli/azure/network/nsg#az-network-nsg-create)| Creates a network security group (NSG), which is a security boundary between the internet and the virtual machine. |
58
58
|[az network nsg rule create](/cli/azure/network/nsg/rule#az-network-nsg-rule-create)| Creates an NSG rule to allow inbound traffic. In this sample, port 22 is opened for SSH traffic. |
@@ -64,4 +64,4 @@ This script uses the following commands to create a resource group, virtual mach
64
64
65
65
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
66
66
67
-
Additional Azure Networking CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
67
+
Other Azure Networking CLI script samples can be found in the [Azure Networking documentation](../cli-samples.md).
0 commit comments