Skip to content

Commit 1d0f117

Browse files
authored
Merge pull request #227495 from mbender-ms/lb-freshness-samples
Load Balancer - Freshness - Samples Articles
2 parents ff6ecaa + 74d45aa commit 1d0f117

9 files changed

+69
-78
lines changed

articles/load-balancer/cli-samples.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,20 @@ documentationcenter: load-balancer
77
author: mbender-ms
88
ms.service: load-balancer
99
ms.topic: sample
10-
ms.custom: seodec18, devx-track-azurecli
10+
ms.custom: seodec18, devx-track-azurecli, engagement-fy23
1111
ms.workload: infrastructure
12-
ms.date: 06/14/2018
12+
ms.date: 02/28/2023
1313
ms.author: mbender
1414
---
1515

1616
# Azure CLI Samples for Load Balancer
1717

1818
The following table includes links to bash scripts built using the Azure CLI.
1919

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. |
26+
| | |

articles/load-balancer/powershell-samples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ author: mbender-ms
88
ms.service: load-balancer
99
ms.topic: sample
1010
ms.workload: infrastructure
11-
ms.date: 12/10/2018
11+
ms.date: 02/28/2023
1212
ms.author: mbender
13-
ms.custom: seodec18
13+
ms.custom: seodec18, engagement-fy23
1414
---
1515

1616
# Azure PowerShell Samples for Load Balancer
1717

18-
The following table includes links to scripts built using Azure PowerShell.
18+
The following table includes links to scripts utilizing using Azure PowerShell.
1919

2020
| Script | Description |
2121
|-|-|

articles/load-balancer/python-samples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ description: With these samples, load balance traffic to multiple websites. Depl
55
services: virtual-network
66
documentationcenter: load-balancer
77
author: mbender-ms
8-
ms.custom: seodec18
8+
ms.custom: seodec18, engagement-fy23
99
ms.service: load-balancer
1010
ms.topic: sample
11-
ms.date: 08/20/2021
11+
ms.date: 02/28/2023
1212
ms.author: mbender
1313

1414
---

articles/load-balancer/scripts/load-balancer-linux-cli-load-balance-multiple-websites-vm.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ ms.service: load-balancer
77
ms.devlang: azurecli
88
ms.topic: sample
99
ms.workload: infrastructure
10-
ms.date: 03/04/2022
10+
ms.date: 02/28/2023
1111
ms.author: mbender
12-
ms.custom: devx-track-azurecli
12+
ms.custom: devx-track-azurecli, engagement-fy23
1313
---
1414

1515
# Azure CLI script example: Load balance multiple websites
@@ -46,12 +46,12 @@ This script uses the following commands to create a resource group, virtual netw
4646
| [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create) | Creates an Azure virtual network and subnet. |
4747
| [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. |
4848
| [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. |
5151
| [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. |
5252
| [az network lb address-pool create](/cli/azure/network/lb/address-pool#az-network-lb-address-pool-create) | Creates a backend address pool. |
5353
| [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. |
5555
| [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. |
5656
| [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. |
5757
| [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
6060

6161
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
6262

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

articles/load-balancer/scripts/load-balancer-linux-cli-sample-nlb.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ ms.service: load-balancer
99
ms.devlang: azurecli
1010
ms.topic: sample
1111
ms.workload: infrastructure
12-
ms.date: 03/04/2022
12+
ms.date: 02/28/2023
1313
ms.author: mbender
14-
ms.custom: devx-track-azurecli
14+
ms.custom: devx-track-azurecli, engagement-fy23
1515
---
1616

1717
# Azure CLI script example: Load balance traffic to VMs for high availability
1818

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

2121
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2222

@@ -44,22 +44,22 @@ This script uses the following commands to create a resource group, virtual mach
4444

4545
| Command | Notes |
4646
|---|---|
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. |
4848
| [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create) | Creates an Azure virtual network and subnet. |
4949
| [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. |
5050
| [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. |
5454
| [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. |
5656
| [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. |
5959
| [az group delete](/cli/azure/vm/extension#az-vm-extension-set) | Deletes a resource group including all nested resources. |
6060

6161
## Next steps
6262

6363
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
6464

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

articles/load-balancer/scripts/load-balancer-linux-cli-sample-zonal-frontend.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ ms.devlang: azurecli
1212
ms.topic: sample
1313
ms.tgt_pltfrm:
1414
ms.workload: infrastructure
15-
ms.date: 03/04/2022
15+
ms.date: 02/28/2023
1616
ms.author: mbender
17-
ms.custom: devx-track-azurecli
17+
ms.custom: devx-track-azurecli, engagement-fy23
1818
---
1919

2020
# Azure CLI script example: Load balance traffic to VMs within a specific availability zone
2121

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

2424
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2525

@@ -51,8 +51,8 @@ This script uses the following commands to create a resource group, virtual mach
5151
| [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create) | Creates an Azure virtual network and subnet. |
5252
| [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. |
5353
| [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. |
5656
| [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. |
5757
| [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. |
5858
| [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
6464

6565
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
6666

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

Comments
 (0)