az-network Verified for current stable LTS

Az Network Command: Create Vnet

Use for create vnet with Az Network. Exact CLI syntax to create vnet using Az Network.

When to use this: Use for create vnet with Az Network.

Command Syntax

az network vnet create --address-prefixes <10.0.0.0/16> -n <vnet> -g <group_name> --subnet-name <subnet> --subnet-prefixes <10.0.0.0/24>

Command Breakdown

--address-prefixes
Command Option
Tool-specific option used by this command invocation.
-n
Command Option
Tool-specific option used by this command invocation.
-g
Command Option
Tool-specific option used by this command invocation.
--subnet-name
Command Option
Tool-specific option used by this command invocation.
--subnet-prefixes
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to create vnet using Az Network.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Az Network directory