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
If you choose to use the CLI locally, this article requires that you have a version of the Azure CLI version 2.0.28 or later installed. To find the version, run `az --version`. If you need to install or upgrade, see [Install Azure CLI 2.0](/cli/azure/install-azure-cli).
23
+
Sign in to the Azure portal at [https://portal.azure.com](https://portal.azure.com).
24
24
25
-
## Sign in to Azure CLI
26
25
27
-
Sign into Azure.
28
-
29
-
```azurecli-interactive
30
-
az login
31
-
```
32
26
33
27
## Deploy a virtual machine scale set with existing load balancer
34
28
35
-
Replace the values in brackets with the names of the resources in your configuration.
36
-
37
-
```azurecli-interactive
38
-
az vmss create \
39
-
--resource-group <resource-group> \
40
-
--name <vmss-name>\
41
-
--image <your-image> \
42
-
--admin-username <admin-username> \
43
-
--generate-ssh-keys \
44
-
--upgrade-policy-mode Automatic \
45
-
--instance-count 3 \
46
-
--vnet-name <virtual-network-name> \
47
-
--subnet <subnet-name> \
48
-
--lb <load-balancer-name> \
49
-
--backend-pool-name <backend-pool-name>
50
-
```
51
-
52
-
The below example deploys a virtual machine scale set with:
53
-
54
-
- Virtual machine scale set named **myVMSS**
55
-
- Azure Load Balancer named **myLoadBalancer**
56
-
- Load balancer backend pool named **myBackendPool**
57
-
- Azure Virtual Network named **myVnet**
58
-
- Subnet named **mySubnet**
59
-
- Resource group named **myResourceGroup**
60
-
- Ubuntu Server image for the virtual machine scale set
61
-
62
-
```azurecli-interactive
63
-
az vmss create \
64
-
--resource-group myResourceGroup \
65
-
--name myVMSS \
66
-
--image Canonical:UbuntuServer:18.04-LTS:latest \
67
-
--admin-username adminuser \
68
-
--generate-ssh-keys \
69
-
--upgrade-policy-mode Automatic \
70
-
--instance-count 3 \
71
-
--vnet-name myVnet\
72
-
--subnet mySubnet \
73
-
--lb myLoadBalancer \
74
-
--backend-pool-name myBackendPool
75
-
```
29
+
In this section you will create a virtual machine scale set in the Azure portal with an existing Azure load balancer.
30
+
76
31
> [!NOTE]
77
-
> 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.
32
+
> The following steps assume a virtual network named **myVNet** and a Azure load balancer named **myLoadBalancer** has been previously deployed.
33
+
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
+
36
+
2. Select **Create**.
37
+
38
+
3. In **Create a virtual machine scale set**, enter or select this information in the **Basics** tab:
0 commit comments