az network vnet
Manage Azure Virtual Networks.
To learn more about Virtual Networks visit https://docs.microsoft.com/azure/virtual-network/virtual-network-manage-network.
Commands
| az network vnet check-ip-address |
Check if a private IP address is available for use within a virtual network. |
| az network vnet create |
Create a virtual network. |
| az network vnet delete |
Delete a virtual network. |
| az network vnet list |
List virtual networks. |
| az network vnet list-available-ips |
List some available ips in the vnet. |
| az network vnet list-endpoint-services |
List which services support VNET service tunneling in a given region. |
| az network vnet peering |
Manage peering connections between Azure Virtual Networks. |
| az network vnet peering create |
Create a virtual network peering connection. |
| az network vnet peering delete |
Delete a peering. |
| az network vnet peering list |
List peerings. |
| az network vnet peering show |
Show details of a peering. |
| az network vnet peering sync |
Sync a virtual network peering connection. |
| az network vnet peering update |
Update a peering. |
| az network vnet show |
Get the details of a virtual network. |
| az network vnet subnet |
Manage subnets in an Azure Virtual Network. |
| az network vnet subnet create |
Create a subnet and associate an existing NSG and route table. |
| az network vnet subnet delete |
Delete a subnet. |
| az network vnet subnet list |
List the subnets in a virtual network. |
| az network vnet subnet list-available-delegations |
List the services available for subnet delegation. |
| az network vnet subnet show |
Show details of a subnet. |
| az network vnet subnet update |
Update a subnet. |
| az network vnet tap |
Manage virtual network taps. |
| az network vnet tap create |
Create a virtual network tap. |
| az network vnet tap delete |
Delete a virtual network tap. |
| az network vnet tap list |
List virtual network taps. |
| az network vnet tap show |
Get the details of a virtual network tap. |
| az network vnet tap update |
Update settings of a virtual network tap. |
| az network vnet update |
Update a virtual network. |
az network vnet check-ip-address
Check if a private IP address is available for use within a virtual network.
az network vnet check-ip-address --ip-address
[--ids]
[--name]
[--resource-group]
Examples
Check whether 10.0.0.4 is available within MyVnet.
az network vnet check-ip-address -g MyResourceGroup -n MyVnet --ip-address 10.0.0.4
Required Parameters
The private IP address to be verified.
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.
The virtual network (VNet) name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 network vnet create
Create a virtual network.
You may also create a subnet at the same time by specifying a subnet name and (optionally) an address prefix. To learn about how to create a virtual network visit https://docs.microsoft.com/azure/virtual-network/manage-virtual-network#create-a-virtual-network.
az network vnet create --name
--resource-group
[--address-prefixes]
[--bgp-community]
[--ddos-protection {false, true}]
[--ddos-protection-plan]
[--defer]
[--dns-servers]
[--edge-zone]
[--enable-encryption {false, true}]
[--encryption-enforcement-policy {allowUnencrypted, dropUnencrypted}]
[--flowtimeout]
[--location]
[--network-security-group]
[--subnet-name]
[--subnet-prefixes]
[--tags]
[--vm-protection {false, true}]
Examples
Create a virtual network.
az network vnet create -g MyResourceGroup -n MyVnet
Create a virtual network with a specific address prefix and one subnet.
az network vnet create -g MyResourceGroup -n MyVnet --address-prefix 10.0.0.0/16 \
--subnet-name MySubnet --subnet-prefix 10.0.0.0/24
Create a virtual network. (autogenerated)
az network vnet create --address-prefixes 10.0.0.0/16 --name MyVirtualNetwork --resource-group MyResourceGroup --subnet-name MyAseSubnet --subnet-prefixes 10.0.0.0/24
Required Parameters
The virtual network (VNet) name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Space-separated list of IP address prefixes for the VNet.
The BGP community associated with the virtual network.
Control whether DDoS protection is enabled.
Name or ID of a DDoS protection plan to associate with the VNet.
Temporarily store the object in the local cache instead of sending to Azure. Use az cache commands to view/clear.
Space-separated list of DNS server IP addresses.
The name of edge zone.
Enable encryption on the virtual network.
To control if the Virtual Machine without encryption is allowed in encrypted Virtual Network or not.
The FlowTimeout value (in minutes) for the Virtual Network.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Name or ID of a network security group (NSG).
Name of a new subnet to create within the VNet.
Space-separated list of address prefixes in CIDR format for the new subnet. If omitted, automatically reserves a /24 (or as large as available) block within the VNet address space.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Enable VM protection for all subnets in the VNet.
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 network vnet delete
Delete a virtual network.
az network vnet delete [--ids]
[--name]
[--resource-group]
Examples
Delete a virtual network.
az network vnet delete -g MyResourceGroup -n myVNet
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.
The virtual network (VNet) name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 network vnet list
List virtual networks.
az network vnet list [--resource-group]
Examples
List all virtual networks in a subscription.
az network vnet list
List all virtual networks in a resource group.
az network vnet list -g MyResourceGroup
List virtual networks in a subscription which specify a certain address prefix.
az network vnet list --query "[?contains(addressSpace.addressPrefixes, '10.0.0.0/16')]"
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 network vnet list-available-ips
List some available ips in the vnet.
az network vnet list-available-ips [--ids]
[--name]
[--resource-group]
Examples
List some available ips in the vnet.
az network vnet list-available-ips -g MyResourceGroup -n MyVNet
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.
The virtual network (VNet) name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 network vnet list-endpoint-services
List which services support VNET service tunneling in a given region.
To learn more about service endpoints visit https://docs.microsoft.com/azure/virtual-network/virtual-network-service-endpoints-configure#azure-cli.
az network vnet list-endpoint-services --location
Examples
List the endpoint services available for use in the West US region.
az network vnet list-endpoint-services -l westus -o table
Required Parameters
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
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 network vnet show
Get the details of a virtual network.
az network vnet show [--expand]
[--ids]
[--name]
[--resource-group]
Examples
Get details for MyVNet.
az network vnet show -g MyResourceGroup -n MyVNet
Optional Parameters
Expands referenced resources.
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.
The virtual network (VNet) name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 network vnet update
Update a virtual network.
az network vnet update [--add]
[--address-prefixes]
[--bgp-community]
[--ddos-protection {false, true}]
[--ddos-protection-plan]
[--defer]
[--dns-servers]
[--enable-encryption {false, true}]
[--encryption-enforcement-policy {allowUnencrypted, dropUnencrypted}]
[--flowtimeout]
[--force-string]
[--ids]
[--name]
[--remove]
[--resource-group]
[--set]
[--vm-protection {false, true}]
Examples
Update a virtual network with the IP address of a DNS server.
az network vnet update -g MyResourceGroup -n MyVNet --dns-servers 10.2.0.8
Update a virtual network to delete DNS server.
az network vnet update -g MyResourceGroup -n MyVNet --dns-servers ''
Update a virtual network. (autogenerated)
az network vnet update --address-prefixes 40.1.0.0/24 --name MyVNet --resource-group MyResourceGroup
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
Space-separated list of IP address prefixes for the VNet.
The BGP community associated with the virtual network.
Control whether DDoS protection is enabled.
Name or ID of a DDoS protection plan to associate with the VNet.
Temporarily store the object in the local cache instead of sending to Azure. Use az cache commands to view/clear.
Space-separated list of DNS server IP addresses.
Enable encryption on the virtual network.
To control if the Virtual Machine without encryption is allowed in encrypted Virtual Network or not.
The FlowTimeout value (in minutes) for the Virtual Network.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
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.
The virtual network (VNet) name.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
Enable VM protection for all subnets in the VNet.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ