Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions Commands/network/vnet/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,24 @@ You may also create a subnet at the same time by specifying a subnet name and (o
```bash
network vnet create -g MyResourceGroup -n MyVNet --ipam-allocations [0].number-of-ip-addresses=100 [0].id=ipam-pool-resource-id
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fQ==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{} 2024-07-01 -->

#### examples

- Create a virtual network with a specific address prefix and one subnet.
```bash
network vnet create -g MyResourceGroup -n MyVnet --address-prefix 10.0.0.0/16 --subnet-name MySubnet --subnet-prefixes 10.0.0.0/24
```

- Create a virtual network.
```bash
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
```

- Create virtual network with an IPAM pool allocation.
```bash
network vnet create -g MyResourceGroup -n MyVNet --ipam-allocations [0].number-of-ip-addresses=100 [0].id=ipam-pool-resource-id
```
11 changes: 11 additions & 0 deletions Commands/network/vnet/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,14 @@ Delete a virtual network.
```bash
network vnet delete -g MyResourceGroup -n myVNet
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fQ==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{} 2024-07-01 -->

#### examples

- Delete a virtual network.
```bash
network vnet delete -g MyResourceGroup -n myVNet
```
22 changes: 22 additions & 0 deletions Commands/network/vnet/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,25 @@ List virtual networks.
```bash
network vnet list --query "[?contains(addressSpace.addressPrefixes, '10.0.0.0/16')]"
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcw==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/virtualnetworks 2024-07-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks 2024-07-01 -->

#### examples

- List all virtual networks in a subscription.
```bash
network vnet list
```

- List all virtual networks in a resource group.
```bash
network vnet list -g MyResourceGroup
```

- List virtual networks in a subscription which specify a certain address prefix.
```bash
network vnet list --query "[?contains(addressSpace.addressPrefixes, '10.0.0.0/16')]"
```
11 changes: 11 additions & 0 deletions Commands/network/vnet/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,14 @@ Get the details of a virtual network.
```bash
network vnet show -g MyResourceGroup -n MyVNet
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fQ==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{} 2024-07-01 -->

#### examples

- Get details for MyVNet.
```bash
network vnet show -g MyResourceGroup -n MyVNet
```
21 changes: 21 additions & 0 deletions Commands/network/vnet/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,24 @@ Update a virtual network.
```bash
network vnet update -g MyResourceGroup -n MyVNet --dns-servers null
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fQ==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{} 2024-07-01 -->

#### examples

- Update a virtual network with the IP address of a DNS server.
```bash
network vnet update -g MyResourceGroup -n MyVNet --dns-servers 10.2.0.8
```

- Update a virtual network.
```bash
network vnet update --address-prefixes 40.1.0.0/24 --name MyVNet --resource-group MyResourceGroup
```

- Update a virtual network to delete DNS server.
```bash
network vnet update -g MyResourceGroup -n MyVNet --dns-servers null
```

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
</arg>
</item>
</arg>
<arg type="array<object>" var="$parameters.properties.publicIpAddressesV6" options="pip-addresses-v6" hide="True" group="">
<arg type="array<object>" var="$parameters.properties.publicIpAddressesV6" options="pip-addresses-v6" group="">
<help short="An array of public ip addresses V6 associated with the nat gateway resource."/>
<item type="object" cls="SubResource_create">
<arg type="string" var="@SubResource_create.id" options="id">
Expand All @@ -176,11 +176,11 @@
</arg>
</item>
</arg>
<arg type="array<@SubResource_create>" var="$parameters.properties.publicIpPrefixesV6" options="pip-prefixes-v6" hide="True" group="">
<arg type="array<@SubResource_create>" var="$parameters.properties.publicIpPrefixesV6" options="pip-prefixes-v6" group="">
<help short="An array of public ip prefixes V6 associated with the nat gateway resource."/>
<item type="@SubResource_create"/>
</arg>
<arg type="@SubResource_create" var="$parameters.properties.sourceVirtualNetwork" options="source-vnet" hide="True" group="">
<arg type="@SubResource_create" var="$parameters.properties.sourceVirtualNetwork" options="source-vnet" group="">
<help short="A reference to the source virtual network using this nat gateway resource."/>
</arg>
<arg type="object" var="$parameters.tags" options="tags" group="">
Expand Down Expand Up @@ -368,7 +368,7 @@
</arg>
</item>
</arg>
<arg nullable="True" type="array<object>" var="$parameters.properties.publicIpAddressesV6" options="pip-addresses-v6" hide="True" group="">
<arg nullable="True" type="array<object>" var="$parameters.properties.publicIpAddressesV6" options="pip-addresses-v6" group="">
<help short="An array of public ip addresses V6 associated with the nat gateway resource."/>
<item nullable="True" type="object" cls="SubResource_update">
<arg nullable="True" type="string" var="@SubResource_update.id" options="id">
Expand All @@ -384,11 +384,11 @@
</arg>
</item>
</arg>
<arg nullable="True" type="array<@SubResource_update>" var="$parameters.properties.publicIpPrefixesV6" options="pip-prefixes-v6" hide="True" group="">
<arg nullable="True" type="array<@SubResource_update>" var="$parameters.properties.publicIpPrefixesV6" options="pip-prefixes-v6" group="">
<help short="An array of public ip prefixes V6 associated with the nat gateway resource."/>
<item nullable="True" type="@SubResource_update"/>
</arg>
<arg nullable="True" type="@SubResource_update" var="$parameters.properties.sourceVirtualNetwork" options="source-vnet" hide="True" group="">
<arg nullable="True" type="@SubResource_update" var="$parameters.properties.sourceVirtualNetwork" options="source-vnet" group="">
<help short="A reference to the source virtual network using this nat gateway resource."/>
</arg>
<arg nullable="True" type="object" var="$parameters.tags" options="tags" group="">
Expand Down

Large diffs are not rendered by default.

Loading