Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions azure-local/multi-rack/multi-rack-create-logical-networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<Layer 3InternalNetwork>"
$fabricResourceID = "<Layer 3InternalNetworkID>"
$subscription = "<Subscription ID>"
$resource_group = "mylocal-rg"
$customLocationID = "/subscriptions/<Subscription ID>/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"
```
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
- [Create Azure Local VMs enabled by Azure Arc](./multi-rack-create-arc-virtual-machines.md)