From 52567d27c3e9561f9861265d3705e9bf1d670ead Mon Sep 17 00:00:00 2001 From: Kerim Hanif <26774526+kerimhanif@users.noreply.github.com> Date: Fri, 1 May 2026 11:55:59 -0700 Subject: [PATCH] Update parameters for logical network creation Fixed CLI syntax in static logical network example. Added missing space between --no-gateway and --ip-pool-start. Corrected undefined PowerShell variable $fabricResourceID in the example. --- .../multi-rack/multi-rack-create-logical-networks.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/azure-local/multi-rack/multi-rack-create-logical-networks.md b/azure-local/multi-rack/multi-rack-create-logical-networks.md index 0d5ff81757..3bbb58f118 100644 --- a/azure-local/multi-rack/multi-rack-create-logical-networks.md +++ b/azure-local/multi-rack/multi-rack-create-logical-networks.md @@ -82,14 +82,14 @@ Create a static logical network when you want to create Azure Local VMs with net ```azurecli $lnetName = "mylocal-lnet-static" - $internalNetworkName = "" + $fabricResourceID = "" $subscription = "" $resource_group = "mylocal-rg" $customLocationID = "/subscriptions//resourceGroups/mylocal-rg/providers/Microsoft.ExtendedLocation/customLocations/mylocal-cl" $location = "eastus" $addressPrefixes = "100.68.180.0/28" - $ipPoolEnd = "100.68.180.20" $ipPoolStart = "100.68.180.10" + $ipPoolEnd = "100.68.180.20" $dnsServers = "192.168.200.222" $vlan = "201" ``` @@ -121,8 +121,7 @@ Create a static logical network when you want to create Azure Local VMs with net 1. Create a static logical network. Run the following command: ```azurecli - az stack-hci-vm network lnet create --subscription $subscription --resource-group $resource_group --custom-location $customLocationID --location $location --name $lnetName --ip-allocation-method "Static" --address-prefixes $addressPrefixes --no-gateway - --ip-pool-start $ipPoolStart --ip-pool-end $ipPoolEnd --ip-pool-type "vm" --dns-servers $dnsServers --fabric-network-configuration-id $fabricResourceID --vlan $vlan + az stack-hci-vm network lnet create --subscription $subscription --resource-group $resource_group --custom-location $customLocationID --location $location --name $lnetName --ip-allocation-method "Static" --address-prefixes $addressPrefixes --no-gateway --ip-pool-start $ipPoolStart --ip-pool-end $ipPoolEnd --ip-pool-type "vm" --dns-servers $dnsServers --fabric-network-configuration-id $fabricResourceID --vlan $vlan ``` Here's a sample output: @@ -199,4 +198,4 @@ Create a static logical network when you want to create Azure Local VMs with net ## Next steps -- [Create Azure Local VMs enabled by Azure Arc](./multi-rack-create-arc-virtual-machines.md) \ No newline at end of file +- [Create Azure Local VMs enabled by Azure Arc](./multi-rack-create-arc-virtual-machines.md)