Skip to content

Commit bd5a23e

Browse files
authored
Merge pull request #221677 from mbender-ms/lb-freshness-vmss-configure
load balancer - freshness - configure VMSS w/ LB
2 parents 26242b7 + a64e796 commit bd5a23e

7 files changed

+62
-53
lines changed

articles/load-balancer/configure-vm-scale-set-cli.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
---
2-
title: Configure virtual machine scale set with an existing Azure Load Balancer - Azure CLI
3-
description: Learn how to configure a virtual machine scale set with an existing Azure Load Balancer by using the Azure CLI.
2+
title: Configure Virtual Machine Scale Set with an existing Azure Load Balancer - Azure CLI
3+
description: Learn how to configure a Virtual Machine Scale Set with an existing Azure Load Balancer by using the Azure CLI.
44
author: mbender-ms
55
ms.author: mbender
66
ms.service: load-balancer
77
ms.topic: how-to
8-
ms.date: 03/25/2020
8+
ms.date: 12/15/2022
9+
ms.custom: FY23 content-maintenance
910
---
1011

11-
# Configure a virtual machine scale set with an existing Azure Load Balancer using the Azure CLI
12+
# Configure a Virtual Machine Scale Set with an existing Azure Load Balancer using the Azure CLI
1213

13-
In this article, you'll learn how to configure a virtual machine scale set with an existing Azure Load Balancer.
14-
15-
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
14+
In this article, you'll learn how to configure a Virtual Machine Scale Set with an existing Azure Load Balancer.
1615

1716
## Prerequisites
1817

19-
- You need an existing standard sku load balancer in the subscription where the virtual machine scale set will be deployed.
18+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
19+
20+
- You need an existing standard sku load balancer in the subscription where the Virtual Machine Scale Set will be deployed.
2021

21-
- You need an Azure Virtual Network for the virtual machine scale set.
22+
- You need an Azure Virtual Network for the Virtual Machine Scale Set.
2223

2324
[!INCLUDE [azure-cli-prepare-your-environment-no-header.md](../../includes/azure-cli-prepare-your-environment-no-header.md)]
2425

2526
- This article requires version 2.0.28 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
2627

27-
## Deploy a virtual machine scale set with existing load balancer
28+
## Deploy a Virtual Machine Scale Set with existing load balancer
2829

30+
Deploy a Virtual Machine Scale Set with [`az vmss create`](/cli/azure/vmss.md#az-vmss-create).
2931
Replace the values in brackets with the names of the resources in your configuration.
3032

3133
```azurecli-interactive
@@ -43,15 +45,15 @@ az vmss create \
4345
--backend-pool-name <backend-pool-name>
4446
```
4547

46-
The below example deploys a virtual machine scale set with:
48+
The below example deploys a Virtual Machine Scale Set with:
4749

48-
- Virtual machine scale set named **myVMSS**
50+
- Virtual Machine Scale Set named **myVMSS**
4951
- Azure Load Balancer named **myLoadBalancer**
5052
- Load balancer backend pool named **myBackendPool**
5153
- Azure Virtual Network named **myVnet**
5254
- Subnet named **mySubnet**
5355
- Resource group named **myResourceGroup**
54-
- Ubuntu Server image for the virtual machine scale set
56+
- Ubuntu Server image for the Virtual Machine Scale Set
5557

5658
```azurecli-interactive
5759
az vmss create \
@@ -72,8 +74,8 @@ az vmss create \
7274
7375
## Next steps
7476

75-
In this article, you deployed a virtual machine scale set with an existing Azure Load Balancer. To learn more about virtual machine scale sets and load balancer, see:
77+
In this article, you deployed a Virtual Machine Scale Set with an existing Azure Load Balancer. To learn more about Virtual Machine Scale Sets and load balancer, see:
7678

7779
- [What is Azure Load Balancer?](load-balancer-overview.md)
78-
- [What are virtual machine scale sets?](../virtual-machine-scale-sets/overview.md)
80+
- [What are Virtual Machine Scale Sets?](../virtual-machine-scale-sets/overview.md)
7981

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,55 @@
11
---
2-
title: Configure virtual machine scale set with an existing Azure Load Balancer - Azure portal
3-
description: Learn how to configure a virtual machine scale set with an existing Azure Load Balancer by using the Azure portal.
2+
title: Configure Virtual Machine Scale Set with an existing Azure Load Balancer - Azure portal
3+
description: Learn how to configure a Virtual Machine Scale Set with an existing Azure Load Balancer by using the Azure portal.
44
author: mbender-ms
55
ms.author: mbender
66
ms.service: load-balancer
77
ms.topic: how-to
8-
ms.date: 03/25/2020
8+
ms.date: 12/15/2022
9+
ms.custom: FY23 content-maintenance
910
---
1011

11-
# Configure a virtual machine scale set with an existing Azure Load Balancer using the Azure portal
12+
# Configure a Virtual Machine Scale Set with an existing Azure Load Balancer using the Azure portal
1213

13-
In this article, you'll learn how to configure a virtual machine scale set with an existing Azure Load Balancer.
14+
In this article, you'll learn how to configure a Virtual Machine Scale Set with an existing Azure Load Balancer.
1415

1516
## Prerequisites
1617

1718
- An Azure subscription.
18-
- An existing standard sku load balancer in the subscription where the virtual machine scale set will be deployed.
19-
- An Azure Virtual Network for the virtual machine scale set.
19+
- An existing standard sku load balancer in the subscription where the Virtual Machine Scale Set will be deployed.
20+
- An Azure Virtual Network for the Virtual Machine Scale Set.
2021

2122
## Sign in to the Azure portal
2223

2324
Sign in to the Azure portal at [https://portal.azure.com](https://portal.azure.com).
2425

2526

2627

27-
## Deploy virtual machine scale set with existing load balancer
28+
## Deploy Virtual Machine Scale Set with existing load balancer
2829

29-
In this section, you'll create a virtual machine scale set in the Azure portal with an existing Azure load balancer.
30+
In this section, you'll create a Virtual Machine Scale Set in the Azure portal with an existing Azure load balancer.
3031

3132
> [!NOTE]
3233
> The following steps assume a virtual network named **myVNet** and a Azure load balancer named **myLoadBalancer** has been previously deployed.
3334
34-
1. On the top left-hand side of the screen, click **Create a resource** > **Compute** > **Virtual machine scale set** or search for **Virtual machine scale set** in the marketplace search.
35+
1. On the top left-hand side of the screen, select **Create a resource** and search for **Virtual Machine Scale Set** in the marketplace search.
3536

36-
2. Select **Create**.
37+
1. Select **Virtual machine scale set** and Select **Create**.
3738

38-
3. In **Create a virtual machine scale set**, enter, or select this information in the **Basics** tab:
39+
1. In **Create a virtual machine scale set**, enter, or select this information in the **Basics** tab:
3940

4041
| Setting | Value |
4142
|--------------------------------|-------------------------------------------------------------------------------------------------------|
4243
| **Project details** | |
4344
| Subscription | Select your Azure subscription |
4445
| Resource Group | Select Create new, enter **myResourceGroup**, then select OK, or select an existing resource group. |
4546
| **Scale set details** | |
46-
| Virtual machine scale set name | Enter **myVMSS** |
47-
| Region | Select **East US 2** |
47+
| Virtual Machine Scale Set name | Enter **myVMSS** |
48+
| Region | Select **East US 2** |
4849
| Availability zone | Select **None** |
50+
| **Orchestration** | |
51+
| Orchestration mode | Select **Uniform** |
52+
| Security type | Select **Standard** |
4953
| **Instance details** | |
5054
| Image | Select **Ubuntu Server 18.04 LTS** |
5155
| Azure Spot instance | Select **No** |
@@ -56,14 +60,13 @@ In this section, you'll create a virtual machine scale set in the Azure portal w
5660
| Password | Enter your admin password |
5761
| Confirm password | Reenter your admin password |
5862

59-
60-
:::image type="content" source="./media/vm-scale-sets/create-vm-scale-set-01.png" alt-text="Screenshot shows the Create virtual machine scale set Basics tab." border="true":::
63+
:::image type="content" source="media/vm-scale-sets/create-virtual-machine-scale-set-thumb.png" alt-text="Screenshot of Create a Virtual Machine Scale Set page." lightbox="media/vm-scale-sets/create-virtual-machine-scale-set.png":::
6164

6265
4. Select the **Networking** tab.
6366

6467
5. Enter or select this information in the **Networking** tab:
6568

66-
Setting | Value |
69+
| Setting | Value |
6770
|-----------------------------------|----------------------------------------------------------|
6871
| **Virtual Network Configuration** | |
6972
| Virtual network | Select **myVNet** or your existing virtual network. |
@@ -74,7 +77,7 @@ In this section, you'll create a virtual machine scale set in the Azure portal w
7477
| Select a load balancer | Select **myLoadBalancer** or your existing load balancer |
7578
| Select a backend pool | Select **myBackendPool** or your existing backend pool. |
7679

77-
:::image type="content" source="./media/vm-scale-sets/create-vm-scale-set-02.png" alt-text="Screenshot shows the Create virtual machine scale set Networking tab." border="true":::
80+
:::image type="content" source="media/vm-scale-sets/create-virtual-machine-scale-set-network-thumb.png" alt-text="Screenshot shows the Create Virtual Machine Scale Set Networking tab." lightbox="media/vm-scale-sets/create-virtual-machine-scale-set-network.png":::
7881

7982
6. Select the **Management** tab.
8083

@@ -86,7 +89,7 @@ In this section, you'll create a virtual machine scale set in the Azure portal w
8689

8790
## Next steps
8891

89-
In this article, you deployed a virtual machine scale set with an existing Azure Load Balancer. To learn more about virtual machine scale sets and load balancer, see:
92+
In this article, you deployed a Virtual Machine Scale Set with an existing Azure Load Balancer. To learn more about Virtual Machine Scale Sets and load balancer, see:
9093

9194
- [What is Azure Load Balancer?](load-balancer-overview.md)
92-
- [What are virtual machine scale sets?](../virtual-machine-scale-sets/overview.md)
95+
- [What are Virtual Machine Scale Sets?](../virtual-machine-scale-sets/overview.md)
Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
---
2-
title: Configure virtual machine scale set with an existing Azure Load Balancer - Azure PowerShell
3-
description: Learn how to configure a virtual machine scale set with an existing Azure Load Balancer.
2+
title: Configure Virtual Machine Scale Set with an existing Azure Load Balancer - Azure PowerShell
3+
description: Learn how to configure a Virtual Machine Scale Set with an existing Azure Load Balancer.
44
author: mbender-ms
55
ms.author: mbender
66
ms.service: load-balancer
77
ms.topic: how-to
8-
ms.date: 03/26/2020
9-
ms.custom: devx-track-azurepowershell, devx-track-azurecli
8+
ms.date: 12/15/2022
9+
ms.custom: FY23 content-maintenance
1010
ms.devlang: azurecli
1111
---
1212

13-
# Configure a virtual machine scale set with an existing Azure Load Balancer using Azure PowerShell
13+
# Configure a Virtual Machine Scale Set with an existing Azure Load Balancer using Azure PowerShell
1414

15-
In this article, you'll learn how to configure a virtual machine scale set with an existing Azure Load Balancer.
15+
In this article, you'll learn how to configure a Virtual Machine Scale Set with an existing Azure Load Balancer.
1616

1717
## Prerequisites
1818

19-
- An Azure subscription.
20-
- An existing standard sku load balancer in the subscription where the virtual machine scale set will be deployed.
21-
- An Azure Virtual Network for the virtual machine scale set.
19+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
20+
- An existing resource group for all resources.
21+
- An existing standard sku load balancer in the subscription where the Virtual Machine Scale Set will be deployed.
22+
- An Azure Virtual Network for the Virtual Machine Scale Set.
2223

2324
[!INCLUDE [cloud-shell-try-it.md](../../includes/cloud-shell-try-it.md)]
2425

2526
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
2627

2728
## Sign in to Azure CLI
2829

29-
Sign into Azure.
30+
Sign into Azure with [`Connect-AzAccount`](/powershell/module/az.accounts/connect-azaccount.md#example-1-connect-to-an-azure-account)
3031

3132
```azurepowershell-interactive
3233
Connect-AzAccount
3334
```
3435

35-
## Deploy a virtual machine scale set with existing load balancer
36-
37-
Replace the values in brackets with the names of the resources in your configuration.
36+
## Deploy a Virtual Machine Scale Set with existing load balancer
37+
Deploy a Virtual Machine Scale Set with [`New-AzVMss`](/powershell/module/az.compute/new-azvmss.md). Replace the values in brackets with the names of the resources in your configuration.
3838

3939
```azurepowershell-interactive
4040
@@ -45,16 +45,18 @@ $vnt = <virtual-network>
4545
$sub = <subnet-name>
4646
$lbn = <load-balancer-name>
4747
$pol = <upgrade-policy-mode>
48+
$img = <image-name>
49+
$bep = <backend-pool-name>
4850
4951
$lb = Get-AzLoadBalancer -ResourceGroupName $rsg -Name $lbn
5052
5153
New-AzVmss -ResourceGroupName $rsg -Location $loc -VMScaleSetName $vms -VirtualNetworkName $vnt -SubnetName $sub -LoadBalancerName $lb -UpgradePolicyMode $pol
5254
5355
```
5456

55-
The below example deploys a virtual machine scale set with:
57+
The below example deploys a Virtual Machine Scale Set with the following values:
5658

57-
- Virtual machine scale set named **myVMSS**
59+
- Virtual Machine Scale Set named **myVMSS**
5860
- Azure Load Balancer named **myLoadBalancer**
5961
- Load balancer backend pool named **myBackendPool**
6062
- Azure Virtual Network named **myVnet**
@@ -70,17 +72,19 @@ $vnt = "myVnet"
7072
$sub = "mySubnet"
7173
$pol = "Automatic"
7274
$lbn = "myLoadBalancer"
75+
$bep = "myBackendPool"
7376
7477
$lb = Get-AzLoadBalancer -ResourceGroupName $rsg -Name $lbn
7578
76-
New-AzVmss -ResourceGroupName $rsg -Location $loc -VMScaleSetName $vms -VirtualNetworkName $vnt -SubnetName $sub -LoadBalancerName $lb -UpgradePolicyMode $pol
79+
New-AzVmss -ResourceGroupName $rsg -Location $loc -VMScaleSetName $vms -VirtualNetworkName $vnt -SubnetName $sub -LoadBalancerName $lb -UpgradePolicyMode $pol -BackendPoolName $bep
80+
7781
```
7882
> [!NOTE]
7983
> After the scale set has been created, the backend port cannot be modified for a load balancing rule used by a health probe of the load balancer. To change the port, you can remove the health probe by updating the Azure virtual machine scale set, update the port and then configure the health probe again.
8084
8185
## Next steps
8286

83-
In this article, you deployed a virtual machine scale set with an existing Azure Load Balancer. To learn more about virtual machine scale sets and load balancer, see:
87+
In this article, you deployed a Virtual Machine Scale Set with an existing Azure Load Balancer. To learn more about Virtual Machine Scale Sets and load balancer, see:
8488

8589
- [What is Azure Load Balancer?](load-balancer-overview.md)
86-
- [What are virtual machine scale sets?](../virtual-machine-scale-sets/overview.md)
90+
- [What are Virtual Machine Scale Sets?](../virtual-machine-scale-sets/overview.md)
115 KB
Loading
107 KB
Loading
130 KB
Loading
131 KB
Loading

0 commit comments

Comments
 (0)