Skip to content

Commit ee473c6

Browse files
authored
Merge pull request #17402 from sethmanheim/aks-vlan
Add vnet parameter to example
2 parents 4d9ecac + 30f1b8c commit ee473c6

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

AKS-Arc/aks-networks.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create logical networks for Kubernetes clusters on Azure Local, version 2
33
description: Learn how to create Arc-enabled logical networks for AKS.
44
ms.topic: how-to
55
author: sethmanheim
6-
ms.date: 11/19/2024
6+
ms.date: 03/21/2025
77
ms.author: sethm
88
ms.lastreviewed: 04/01/2024
99
ms.reviewer: abha
@@ -43,11 +43,27 @@ ConvergedSwitch(management_compute_storage) External Teamed-Interface
4343

4444
## Create the logical network
4545

46-
You can create a logical network using either the Azure Command-Line Interface (CLI) or by using the Azure portal.
46+
You can create a logical network by using either the Azure CLI or the Azure portal.
4747

4848
# [Azure CLI](#tab/azurecli)
4949

50-
You can use the [`az stack-hci-vm network lnet create`](/cli/azure/stack-hci-vm/network/lnet#az-stack-hci-vm-network-lnet-create) cmdlet to create a logical network on the VM switch in Static IP configuration.
50+
To create a logical network on the VM switch in a static IP configuration, you can use the [`az stack-hci-vm network lnet create`](/cli/azure/stack-hci-vm/network/lnet#az-stack-hci-vm-network-lnet-create) command:
51+
52+
```azurecli
53+
az stack-hci-vm network lnet create \
54+
--subscription $subscription \
55+
--resource-group $resource_group \
56+
--custom-location $customLocationID \
57+
--name $lnetName \
58+
--vm-switch-name $vmSwitchName \
59+
--ip-allocation-method "Static" \
60+
--address-prefixes $addressPrefixes \
61+
--gateway $gateway \
62+
--dns-servers $dnsServers \
63+
--ip-pool-start $ipPoolStart \
64+
--ip-pool-end $ipPoolEnd \
65+
--vlan 10
66+
```
5167

5268
For static IP, the required parameters are as follows:
5369

@@ -57,17 +73,14 @@ For static IP, the required parameters are as follows:
5773
| `--resource-group` | Name of the resource group where you create the logical network. |
5874
| `--subscription` | Name or ID of the subscription where your Azure Local is deployed. |
5975
| `--custom-location` | Provide the custom location associated with your Azure Local cluster where you're creating the logical network. |
60-
| `--vm-switch-name` | The name of the VM switch. Usage: `--vm-switch-name "vm-switch-01"`. |
76+
| `--vm-switch-name` | The name of the VM switch. Usage: `--vm-switch-name "vm-switch-01"`. |
6177
| `--address-prefixes` | AddressPrefix for the network. Currently only 1 address prefix is supported. Usage: `--address-prefixes "10.220.32.16/24"`. |
62-
| `--dns-servers` | Space-separated list of DNS server IP addresses. Usage: `--dns-servers 10.220.32.16 10.220.32.17`. |
78+
| `--dns-servers` | Space-separated list of DNS server IP addresses. Usage: `--dns-servers 10.220.32.16 10.220.32.17`. |
6379
| `--gateway` | Gateway. The gateway IP address must be within the scope of the address prefix. Usage: `--gateway 10.220.32.16`. |
64-
| `--ip-allocation-method` | The IP address allocation method. Supported values are "Static". Usage: `--ip-allocation-method "Static"`. |
65-
| `--ip-pool-start` | The start IP address of your IP pool. The address must be in range of the address prefix. Usage: `--ip-pool-start "10.220.32.18"`. |
80+
| `--ip-allocation-method` | The IP address allocation method. Supported values are `Static`. Usage: `--ip-allocation-method "Static"`. |
81+
| `--ip-pool-start` | The start IP address of your IP pool. The address must be in range of the address prefix. Usage: `--ip-pool-start "10.220.32.18"`. |
6682
| `--ip-pool-end` | The end IP address of your IP pool. The address must be in range of the address prefix. Usage: `--ip-pool-end "10.220.32.38"`. |
67-
68-
```azurecli
69-
az stack-hci-vm network lnet create --subscription $subscription --resource-group $resource_group --custom-location $customLocationID --name $lnetName --vm-switch-name $vmSwitchName --ip-allocation-method "Static" --address-prefixes $addressPrefixes --gateway $gateway --dns-servers $dnsServers --ip-pool-start $ipPoolStart --ip-pool-end $ipPoolEnd
70-
```
83+
| `--vlan` | The VLAN ID. Usage: `--vlan 10`. This parameter is required, otherwise the default value of 0 results in an AKS Arc cluster creation failure. |
7184

7285
# [Azure portal](#tab/azureportal)
7386

@@ -77,11 +90,11 @@ Complete the following steps to create a logical network using the Azure portal:
7790

7891
:::image type="content" source="./media/aks-networks/select-logical-network.png" alt-text="Screenshot showing Resources pane in Azure portal." lightbox="./media/aks-networks/select-logical-network.png":::
7992

80-
2. In the right pane, select **Create logical network**.
93+
1. In the right pane, select **Create logical network**.
8194

8295
:::image type="content" source="./media/aks-networks/create-logical-network.png" alt-text="Screenshot showing logical network creation link." lightbox="./media/aks-networks/create-logical-network.png":::
8396

84-
3. On the **Create logical network** page, on the **Basics** tab:
97+
1. On the **Create logical network** page, on the **Basics** tab:
8598

8699
- Select the Azure subscription name.
87100
- Select the associated resource group name.
@@ -94,7 +107,7 @@ Complete the following steps to create a logical network using the Azure portal:
94107

95108
:::image type="content" source="./media/aks-networks/enter-network-name.png" alt-text="Screenshot showing Basics tab." lightbox="./media/aks-networks/enter-network-name.png":::
96109

97-
4. On the **Network configuration** tab, select **Static** and then enter the following:
110+
1. On the **Network configuration** tab, select **Static** and then enter the following:
98111
- IPv4 address space (previously reserved).
99112
- IP pools.
100113
- Default gateway address.
@@ -105,7 +118,7 @@ Complete the following steps to create a logical network using the Azure portal:
105118

106119
:::image type="content" source="./media/aks-networks/enter-ip-addresses.png" alt-text="Screenshot showing Network configuration tab." lightbox="./media/aks-networks/enter-ip-addresses.png":::
107120

108-
5. On the **Review + Create** tab, review network settings and then select **Create**:
121+
1. On the **Review + Create** tab, review network settings and then select **Create**:
109122

110123
:::image type="content" source="./media/aks-networks/review-and-create-static.png" alt-text="Screenshot showing static network properties page." lightbox="./media/aks-networks/review-and-create-static.png":::
111124

0 commit comments

Comments
 (0)