Skip to content

Commit dd33645

Browse files
committed
Add vnet parameter to example
1 parent 8758b01 commit dd33645

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

AKS-Arc/aks-networks.md

Lines changed: 15 additions & 9 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/19/2025
77
ms.author: sethm
88
ms.lastreviewed: 04/01/2024
99
ms.reviewer: abha
@@ -57,18 +57,24 @@ For static IP, the required parameters are as follows:
5757
| `--resource-group` | Name of the resource group where you create the logical network. |
5858
| `--subscription` | Name or ID of the subscription where your Azure Local is deployed. |
5959
| `--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"`. |
60+
| `--vm-switch-name` | The name of the VM switch. Usage: `--vm-switch-name "vm-switch-01"`. |
6161
| `--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`. |
62+
| `--dns-servers` | Space-separated list of DNS server IP addresses. Usage: `--dns-servers 10.220.32.16 10.220.32.17`. |
6363
| `--gateway` | Gateway. The gateway IP address must be within the scope of the address prefix. Usage: `--gateway 10.220.32.16`. |
6464
| `--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"`. |
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"`. |
6666
| `--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+
| `--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. |
6768

6869
```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+
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 --vlan 10
7071
```
7172

73+
To update an existing logical network, run the [az stack-hci-vm network lnet update command](/cli/azure/stack-hci-vm/network/lnet). For example:
74+
75+
```azurecli
76+
az stack-hci-vm network lnet update --resource-group $resource_group --name $lnetName
77+
7278
# [Azure portal](#tab/azureportal)
7379
7480
Complete the following steps to create a logical network using the Azure portal:
@@ -77,11 +83,11 @@ Complete the following steps to create a logical network using the Azure portal:
7783
7884
:::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":::
7985
80-
2. In the right pane, select **Create logical network**.
86+
1. In the right pane, select **Create logical network**.
8187
8288
:::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":::
8389
84-
3. On the **Create logical network** page, on the **Basics** tab:
90+
1. On the **Create logical network** page, on the **Basics** tab:
8591
8692
- Select the Azure subscription name.
8793
- Select the associated resource group name.
@@ -94,7 +100,7 @@ Complete the following steps to create a logical network using the Azure portal:
94100
95101
:::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":::
96102
97-
4. On the **Network configuration** tab, select **Static** and then enter the following:
103+
1. On the **Network configuration** tab, select **Static** and then enter the following:
98104
- IPv4 address space (previously reserved).
99105
- IP pools.
100106
- Default gateway address.
@@ -105,7 +111,7 @@ Complete the following steps to create a logical network using the Azure portal:
105111
106112
:::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":::
107113
108-
5. On the **Review + Create** tab, review network settings and then select **Create**:
114+
1. On the **Review + Create** tab, review network settings and then select **Create**:
109115
110116
:::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":::
111117

0 commit comments

Comments
 (0)