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
# Quickstart: Create an internal load balancer to load balance VMs using Bicep
14
14
15
-
This quickstart describes how to use Bicep to create an internal Azure load balancer.
15
+
In this quickstart, you learn to use a BICEP file to create an internal; Azure load balancer. The internal load balancer distributes traffic to virtual machines in a virtual network located in the load balancer's backend pool. Along with the internal load balancer, this template creates a virtual network, network interfaces, a NAT Gateway, and an Azure Bastion instance.
16
16
17
17
:::image type="content" source="media/quickstart-load-balancer-standard-internal-portal/internal-load-balancer-resources.png" alt-text="Diagram of resources deployed for internal load balancer.":::
18
18
@@ -24,18 +24,21 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
24
24
25
25
## Review the Bicep file
26
26
27
-
The Bicep file used in this quickstart is from the [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/2-vms-internal-load-balancer/).
27
+
The Bicep file used in this quickstart is from the [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/internal-loadbalancer-create/main.bicep).
-[**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses): Public IP addresses for the NAT Gateway and Azure Bastion.
38
+
-[**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines): Virtual machines in the backend pool.
# Quickstart: Create an internal load balancer to load balance VMs using an ARM template
14
14
15
-
This quickstart describes how to use an Azure Resource Manager template (ARM template) to create an internal Azure load balancer.
15
+
In this quickstart, you learn to use an Azure Resource Manager template (ARM template) to create an internal Azure load balancer. The internal load balancer distributes traffic to virtual machines in a virtual network located in the load balancer's backend pool. Along with the internal load balancer, this template creates a virtual network, network interfaces, a NAT Gateway, and an Azure Bastion instance.
16
16
17
-
:::image type="content" source="media/quickstart-load-balancer-standard-internal-portal/internal-load-balancer-resources.png" alt-text="Diagram of resources deployed for internal load balancer.":::
17
+
:::image type="content" source="media/quickstart-load-balancer-standard-public-portal/public-load-balancer-resources.png" alt-text="Diagram of resources deployed for a standard public load balancer." lightbox="media/quickstart-load-balancer-standard-public-portal/public-load-balancer-resources.png":::
18
18
19
+
Using an ARM template takes fewer steps comparing to other deployment methods.
If your environment meets the prerequisites and you're familiar with using ARM templates, select the **Deploy to Azure** button. The template opens in the Azure portal.
23
24
24
-
:::image type="content" source="~/reusable-content/ce-skilling/azure/media/template-deployments/deploy-to-azure-button.svg" alt-text="Button to deploy the Resource Manager template to Azure." border="false" link="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.compute%2F2-vms-internal-load-balancer%2Fazuredeploy.json":::
25
+
:::image type="content" source="~/reusable-content/ce-skilling/azure/media/template-deployments/deploy-to-azure-button.svg" alt-text="Button to deploy the Resource Manager template to Azure." border="false" link="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.network%2Finternal-loadbalancer-create%2Fazuredeploy.json":::
25
26
26
27
## Prerequisites
27
28
28
29
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
29
30
30
31
## Review the template
31
32
32
-
The template used in this quickstart is from the [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/2-vms-internal-load-balancer/).
33
+
The template used in this quickstart is from the [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/internal-loadbalancer-create/).
-[**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses): Public IP addresses for the NAT Gateway and Azure Bastion.
44
+
-[**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines): Virtual machines in the backend pool.
-[**Microsoft.Network/virtualNetworks/subnets**](/azure/templates/microsoft.network/virtualnetworks/subnets): Subnets for the virtual network.
47
+
-[**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageaccounts): Storage account for the virtual machines.
44
48
45
49
To find more templates that are related to Azure Load Balancer, see [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Network&pageNumber=1&sort=Popular).
46
50
47
51
## Deploy the template
48
52
49
-
**Azure CLI**
53
+
In this step, you deploy the template using Azure PowerShell with the `[New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment)` command.
50
54
51
-
```azurecli-interactive
52
-
read -p "Enter the location (i.e. westcentralus): " location
Azure PowerShell or Azure CLI is used to deploy the template. You can also use the Azure portal and REST API. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-portal.md).
64
101
65
102
## Review deployed resources
66
103
67
-
1. Sign in to the [Azure portal](https://portal.azure.com).
104
+
Use Azure CLI or Azure PowerShell to list the deployed resources in the resource group with the following commands:
68
105
69
-
1. Select **Resource groups** from the left pane.
106
+
# [CLI](#tab/CLI)
70
107
71
-
1. Select the resource group that you created in the previous section. The default resource group name is **myResourceGroupLB**
108
+
```azurecli-interactive
109
+
az resource list --resource-group $resourceGroupName
110
+
```
111
+
# [PowerShell](#tab/PowerShell)
72
112
73
-
1. Verify the following resources were created in the resource group:
:::image type="content" source="media/quickstart-load-balancer-standard-internal-template/verify-creation.png" alt-text="User Azure portal to verify creation of resources." border="true":::
117
+
---
76
118
77
119
## Clean up resources
78
120
79
-
When no longer needed, you can use the [az group delete](/cli/azure/group#az-group-delete) command to remove the resource group and all resources contained within.
121
+
When no longer needed, use Azure CLI or Azure PowerShell to delete the resource group and its resources with the following commands:
122
+
123
+
# [CLI](#tab/CLI)
80
124
81
125
```azurecli-interactive
82
-
az group delete \
83
-
--name myResourceGroupLB
126
+
Remove-AzResourceGroup -Name "${projectName}rg"
84
127
```
85
128
129
+
# [PowerShell](#tab/PowerShell)
130
+
131
+
```azurepowershell-interactive
132
+
Remove-AzResourceGroup -Name CreateIntLBQS-rg
133
+
```
134
+
---
135
+
86
136
## Next steps
87
137
88
138
For a step-by-step tutorial that guides you through the process of creating a template, see:
89
139
90
140
> [!div class="nextstepaction"]
91
-
> [Tutorial: Create and deploy your first ARM template](../azure-resource-manager/templates/template-tutorial-create-first-template.md)
141
+
> [Tutorial: Create and deploy your first ARM template](../azure-resource-manager/templates/template-tutorial-create-first-template.md)
# Quickstart: Create a public load balancer to load balance VMs using a Bicep file
16
16
17
-
Load balancing provides a higher level of availability and scale by spreading incoming requests across multiple virtual machines (VMs).
18
-
19
-
This quickstart shows you how to deploy a standard load balancer to load balance virtual machines.
17
+
In this quickstart, you learn to use a BICEP file to create a public Azure load balancer. The public load balancer distributes traffic to virtual machines in a virtual network located in the load balancer's backend pool. Along with the public load balancer, this template creates a virtual network, network interfaces, a NAT Gateway, and an Azure Bastion instance.
20
18
21
19
:::image type="content" source="media/quickstart-load-balancer-standard-public-portal/public-load-balancer-resources.png" alt-text="Diagram of resources deployed for a standard public load balancer." lightbox="media/quickstart-load-balancer-standard-public-portal/public-load-balancer-resources.png":::
22
20
@@ -71,7 +69,6 @@ To find more Bicep files or ARM templates that are related to Azure Load Balance
# Quickstart: Create a public load balancer to load balance VMs using an ARM template
17
17
18
-
Load balancing provides a higher level of availability and scale by spreading incoming requests across multiple virtual machines (VMs).
19
-
20
-
This quickstart shows you how to deploy a standard load balancer to load balance virtual machines.
18
+
This quickstart shows you how to deploy a standard load balancer to load balance virtual machines. The load balancer distributes traffic across multiple virtual machines in a backend pool. The template also creates a virtual network, network interfaces, a NAT Gateway, and an Azure Bastion instance.
21
19
22
20
:::image type="content" source="media/quickstart-load-balancer-standard-public-portal/public-load-balancer-resources.png" alt-text="Diagram of resources deployed for a standard public load balancer." lightbox="media/quickstart-load-balancer-standard-public-portal/public-load-balancer-resources.png":::
23
21
@@ -57,7 +55,6 @@ Multiple Azure resources have been defined in the template:
To find more templates that are related to Azure Load Balancer, see [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Network&pageNumber=1&sort=Popular).
63
60
@@ -75,7 +72,7 @@ To find more templates that are related to Azure Load Balancer, see [Azure Quick
0 commit comments