Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vnet create/update additions for IPAM pool (2024-05-01 stable) #597

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 @@ -85,3 +85,24 @@ You may also create a subnet at the same time by specifying a subnet name and (o
```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
```

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{} 2024-05-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 IPAM pool reference
```bash
network vnet create -n vnet-name -g test-rg --address-prefixes [] --ipam-pool-prefix-allocations [{"NumberOfIpAddresses": "100", "Id": "/subscriptions/xxx/resourceGroups/test-rg/providers/Microsoft.Network/networkManagers/nm/ipamPools/target-pool"}]
```
11 changes: 11 additions & 0 deletions Commands/network/vnet/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ Delete a virtual network.
```bash
network vnet delete -g MyResourceGroup -n myVNet
```

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

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

#### examples

- Delete a virtual network.
```bash
network vnet delete -g MyResourceGroup -n myVNet
```
11 changes: 11 additions & 0 deletions Commands/network/vnet/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ Get the details of a virtual network.
```bash
network vnet show -g MyResourceGroup -n MyVNet
```

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

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

#### examples

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

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

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{} 2024-05-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
```

- Update virtual network with IPAM pool reference
```bash
network vnet update -n vnet-name -g test-rg --ipam-pool-prefix-allocations [{"NumberOfIpAddresses": "100", "Id": "/subscriptions/xxx/resourceGroups/test-rg/providers/Microsoft.Network/networkManagers/nm/ipamPools/new-pool"}]
```
102 changes: 102 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -130963,6 +130963,36 @@
"version": "2024-03-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet create -g MyResourceGroup -n MyVnet --address-prefix 10.0.0.0/16 --subnet-name MySubnet --subnet-prefixes 10.0.0.0/24"
],
"name": "Create a virtual network with a specific address prefix and one subnet."
},
{
"commands": [
"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"
],
"name": "Create a virtual network."
},
{
"commands": [
"network vnet create -n vnet-name -g test-rg --address-prefixes [] --ipam-pool-prefix-allocations [{\"NumberOfIpAddresses\": \"100\", \"Id\": \"/subscriptions/xxx/resourceGroups/test-rg/providers/Microsoft.Network/networkManagers/nm/ipamPools/target-pool\"}]"
],
"name": "Create virtual network with IPAM pool reference"
}
],
"name": "2024-05-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}",
"plane": "mgmt-plane",
"version": "2024-05-01"
}
]
}
]
},
Expand Down Expand Up @@ -131065,6 +131095,24 @@
"version": "2024-03-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet delete -g MyResourceGroup -n myVNet"
],
"name": "Delete a virtual network."
}
],
"name": "2024-05-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}",
"plane": "mgmt-plane",
"version": "2024-05-01"
}
]
}
]
},
Expand Down Expand Up @@ -131423,6 +131471,24 @@
"version": "2024-03-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet show -g MyResourceGroup -n MyVNet"
],
"name": "Get details for MyVNet."
}
],
"name": "2024-05-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}",
"plane": "mgmt-plane",
"version": "2024-05-01"
}
]
}
]
},
Expand Down Expand Up @@ -131585,6 +131651,42 @@
"version": "2024-03-01"
}
]
},
{
"examples": [
{
"commands": [
"network vnet update -g MyResourceGroup -n MyVNet --dns-servers 10.2.0.8"
],
"name": "Update a virtual network with the IP address of a DNS server."
},
{
"commands": [
"network vnet update --address-prefixes 40.1.0.0/24 --name MyVNet --resource-group MyResourceGroup"
],
"name": "Update a virtual network."
},
{
"commands": [
"network vnet update -g MyResourceGroup -n MyVNet --dns-servers null"
],
"name": "Update a virtual network to delete DNS server."
},
{
"commands": [
"network vnet update -n vnet-name -g test-rg --ipam-pool-prefix-allocations [{\"NumberOfIpAddresses\": \"100\", \"Id\": \"/subscriptions/xxx/resourceGroups/test-rg/providers/Microsoft.Network/networkManagers/nm/ipamPools/new-pool\"}]"
],
"name": "Update virtual network with IPAM pool reference"
}
],
"name": "2024-05-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}",
"plane": "mgmt-plane",
"version": "2024-05-01"
}
]
}
]
}
Expand Down

Large diffs are not rendered by default.

Loading
Loading