az stack-hci-vm network lnet
Note
This reference is part of the stack-hci-vm extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az stack-hci-vm network lnet command. Learn more about extensions.
Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage logicalnetworks with stack-hci-vm.
Commands
Name | Description | Type | Status |
---|---|---|---|
az stack-hci-vm network lnet create |
Create a logical network. |
Extension | Experimental |
az stack-hci-vm network lnet delete |
Delete a logical network. |
Extension | Experimental |
az stack-hci-vm network lnet list |
List all the logical networks. |
Extension | Experimental |
az stack-hci-vm network lnet show |
Get the details of a logical network. |
Extension | Experimental |
az stack-hci-vm network lnet update |
Update a logical network. |
Extension | Experimental |
az stack-hci-vm network lnet create
Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a logical network.
az stack-hci-vm network lnet create --custom-location
--name
--resource-group
[--address-prefixes]
[--dns-servers]
[--gateway]
[--ip-allocation-method {Dynamic, Static}]
[--ip-pool-end]
[--ip-pool-start]
[--ip-pool-type]
[--ip-pools]
[--location]
[--no-dns-servers {false, true}]
[--no-gateway {false, true}]
[--polling-interval]
[--routes]
[--subnets]
[--tags]
[--vlan]
[--vm-switch-name]
Examples
PutVirtualNetwork
az stack-hci-vm network lnet create --resource-group "test-rg" --custom-location "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" --location "West US2" --name "test-lnet" --ip-allocation-method "Static" --address-prefixes "10.0.0.0/28" --ip-pool-start "10.0.0.0" --ip-pool-end "10.0.0.15" --vm-switch-name "test-vm-switch" --dns-servers 10.220.32.16 10.220.32.17
Required Parameters
The ID of the extended location.
Name of the logical network.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
AddressPrefixes - List of space-separated address prefixes for the subnet. Currently only 1 address prefix is supported.
Usage: --address-prefixes "1.2.3.0/16".
Space-separated list of DNS server IP addresses.
Usage: --dns-servers 10.220.32.16 10.220.32.17.
Gateway.
Usage: --gateway 1.2.3.4.
IPAllocationMethod - The IP address allocation method. Possible values include: Static, Dynamic.
Usage: --ip-allocation-method "Static/Dynamic".
End of the ip address pool.
Usage: --ip-pool-end "1.2.3.4".
Start of the ip address pool.
Usage: --ip-pool-start "1.2.3.0".
Ip pool type.
Usage: --ip-pool-type "vm".
Ippools.
Usage: --ip-pools '[{/"start/":/"1.2.3.0/", /"end/":/"1.2.3.4/", /"ip_pool_type/":/"vm/"}]'.
If location is not specified, the location of the resource group is used.
Pass this flag in order to bypass passing the dns-servers parameter.
Pass this flag in order to bypass passing the gateway parameter.
ARM polling interval for long running operations.
Collection of routes contained within a route table.
Usage: --routes '[{/"name/":/"route1/",/"properties/":{/"address_prefix/":/"1.2.3.0/28/",/"next_hop_ip_address/":/"1.2.3.1/"}},{/"name/":/"route2/",/"properties/":{/"address_prefix/":/"1.2.6.0/24/",/"next_hop_ip_address/":/"1.2.6.1/"}}]' Expected value: json-string/json-file/@json-file.
Subnet - list of subnets under the logical network. All other subnet properties in the cli parameters will be ignored if this is provided. Expected value: json-string/@json-file.
Usage: --subnets '[{"properties":{"addressPrefix":"1.2.3.0/24","ipAllocationMethod":"Static","ipPools":[{"end":"1.2.3.10","start":"1.2.3.0","ipPoolType":"vm"},{"end":"1.2.3.15","start":"1.2.3.11","ipPoolType":"vm"}]}}]'.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Vlan to use for the subnet.
Usage: --vlan 10.
Name of the VM switch.
Usage: --vm-switch-name "vm-switch-01".
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az stack-hci-vm network lnet delete
Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a logical network.
az stack-hci-vm network lnet delete [--ids]
[--name]
[--polling-interval]
[--resource-group]
[--subscription]
[--yes]
Examples
DeleteVirtualNetwork
az stack-hci-vm network lnet delete --resource-group "test-rg" --name "test-lnet"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the logical network.
ARM polling interval for long running operations.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az stack-hci-vm network lnet list
Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all the logical networks.
az stack-hci-vm network lnet list [--resource-group]
Examples
ListVirtualNetworkByResourceGroup
az stack-hci-vm network lnet list --resource-group "test-rg"
ListVirtualNetworkBySubscription
az stack-hci-vm network lnet list
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az stack-hci-vm network lnet show
Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get the details of a logical network.
az stack-hci-vm network lnet show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
GetVirtualNetwork
az stack-hci-vm network lnet show --resource-group "test-rg" --name "test-lnet"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the logical network.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az stack-hci-vm network lnet update
Command group 'stack-hci-vm' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a logical network.
az stack-hci-vm network lnet update [--ids]
[--name]
[--polling-interval]
[--resource-group]
[--subscription]
[--tags]
Examples
UpdateVirtualNetwork
az stack-hci-vm network lnet update --resource-group "test-rg" --tags additionalProperties="sample" --name "test-lnet"
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the logical network.
ARM polling interval for long running operations.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for