Skip to content

Commit 2543474

Browse files
authored
Merge pull request #781 from cxznmhdcxz/subnet-ipam-pool-allocation
[Network] `az network vnet subnet create/update`: Support IPAM pool allocation
2 parents 0330e52 + 386e04f commit 2543474

File tree

11 files changed

+6689
-2
lines changed

11 files changed

+6689
-2
lines changed

Commands/network/vnet/subnet/_create.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,19 @@ Create a subnet and associate an existing NSG and route table.
163163
```bash
164164
network vnet subnet create -n MySubnet --vnet-name MyVnet -g MyResourceGroup --nat-gateway MyNatGateway --address-prefixes "10.0.0.0/21"
165165
```
166+
167+
### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS9zdWJuZXRzL3t9/2024-07-01.xml) **Stable**
168+
169+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{} 2024-07-01 -->
170+
171+
#### examples
172+
173+
- Create new subnet attached to an NSG with a custom route table.
174+
```bash
175+
network vnet subnet create -g MyResourceGroup --vnet-name MyVnet -n MySubnet --address-prefixes 10.0.0.0/24 --network-security-group MyNsg --route-table MyRouteTable
176+
```
177+
178+
- Create new subnet attached to a NAT gateway.
179+
```bash
180+
network vnet subnet create -n MySubnet --vnet-name MyVnet -g MyResourceGroup --nat-gateway MyNatGateway --address-prefixes "10.0.0.0/21"
181+
```

Commands/network/vnet/subnet/_delete.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,14 @@ Delete a subnet.
113113
```bash
114114
network vnet subnet delete --name MySubnet --resource-group MyResourceGroup --vnet-name MyVnet
115115
```
116+
117+
### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS9zdWJuZXRzL3t9/2024-07-01.xml) **Stable**
118+
119+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{} 2024-07-01 -->
120+
121+
#### examples
122+
123+
- Delete a subnet.
124+
```bash
125+
network vnet subnet delete --name MySubnet --resource-group MyResourceGroup --vnet-name MyVnet
126+
```

Commands/network/vnet/subnet/_list.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,14 @@ List the subnets in a virtual network.
9191
```bash
9292
network vnet subnet list -g MyResourceGroup --vnet-name MyVNet
9393
```
94+
95+
### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS9zdWJuZXRz/2024-07-01.xml) **Stable**
96+
97+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets 2024-07-01 -->
98+
99+
#### examples
100+
101+
- List the subnets in a virtual network.
102+
```bash
103+
network vnet subnet list -g MyResourceGroup --vnet-name MyVNet
104+
```

Commands/network/vnet/subnet/_show.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,14 @@ Show details of a subnet.
113113
```bash
114114
network vnet subnet show -g MyResourceGroup -n MySubnet --vnet-name MyVNet
115115
```
116+
117+
### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS9zdWJuZXRzL3t9/2024-07-01.xml) **Stable**
118+
119+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{} 2024-07-01 -->
120+
121+
#### examples
122+
123+
- Show the details of a subnet associated with a virtual network.
124+
```bash
125+
network vnet subnet show -g MyResourceGroup -n MySubnet --vnet-name MyVNet
126+
```

Commands/network/vnet/subnet/_update.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,29 @@ Update a subnet.
263263
```bash
264264
network vnet subnet update -g MyResourceGroup --vnet-name MyVNet -n MySubnet --nsg null
265265
```
266+
267+
### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS9zdWJuZXRzL3t9/2024-07-01.xml) **Stable**
268+
269+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{} 2024-07-01 -->
270+
271+
#### examples
272+
273+
- Associate a network security group to a subnet.
274+
```bash
275+
network vnet subnet update -g MyResourceGroup -n MySubnet --vnet-name MyVNet --network-security-group MyNsg
276+
```
277+
278+
- Update subnet with NAT gateway.
279+
```bash
280+
network vnet subnet update -n MySubnet --vnet-name MyVnet -g MyResourceGroup --nat-gateway MyNatGateway --address-prefixes "10.0.0.0/21"
281+
```
282+
283+
- Disable the private endpoint network policies.
284+
```bash
285+
network vnet subnet update -n MySubnet --vnet-name MyVnet -g MyResourceGroup --private-endpoint-network-policies Disabled
286+
```
287+
288+
- Detach a network security group in a subnet.
289+
```bash
290+
network vnet subnet update -g MyResourceGroup --vnet-name MyVNet -n MySubnet --nsg null
291+
```

Commands/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
: Manage custom virtual machine images.
184184

185185
- [informatica](/Commands/informatica/readme.md)
186-
: Manage all resources related to Informatica within the Azure CLI.
186+
: Manage Informatica
187187

188188
- [k8s-runtime](/Commands/k8s-runtime/readme.md)
189189
: Manage Arc Kubernetes Runtime resources
@@ -228,7 +228,7 @@
228228
: Manage the Azure Monitor Service.
229229

230230
- [neon](/Commands/neon/readme.md)
231-
: Manage Neon Postgres databases and related resources within Azure.
231+
: Manage Neon Postgres
232232

233233
- [netappfiles](/Commands/netappfiles/readme.md)
234234
: Manage Azure NetApp Files (ANF) Resources

Commands/tree.json

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150470,6 +150470,30 @@
150470150470
"version": "2024-01-01"
150471150471
}
150472150472
]
150473+
},
150474+
{
150475+
"examples": [
150476+
{
150477+
"commands": [
150478+
"network vnet subnet create -g MyResourceGroup --vnet-name MyVnet -n MySubnet --address-prefixes 10.0.0.0/24 --network-security-group MyNsg --route-table MyRouteTable"
150479+
],
150480+
"name": "Create new subnet attached to an NSG with a custom route table."
150481+
},
150482+
{
150483+
"commands": [
150484+
"network vnet subnet create -n MySubnet --vnet-name MyVnet -g MyResourceGroup --nat-gateway MyNatGateway --address-prefixes \"10.0.0.0/21\""
150485+
],
150486+
"name": "Create new subnet attached to a NAT gateway."
150487+
}
150488+
],
150489+
"name": "2024-07-01",
150490+
"resources": [
150491+
{
150492+
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{}",
150493+
"plane": "mgmt-plane",
150494+
"version": "2024-07-01"
150495+
}
150496+
]
150473150497
}
150474150498
]
150475150499
},
@@ -150663,6 +150687,24 @@
150663150687
"version": "2024-01-01"
150664150688
}
150665150689
]
150690+
},
150691+
{
150692+
"examples": [
150693+
{
150694+
"commands": [
150695+
"network vnet subnet delete --name MySubnet --resource-group MyResourceGroup --vnet-name MyVnet"
150696+
],
150697+
"name": "Delete a subnet."
150698+
}
150699+
],
150700+
"name": "2024-07-01",
150701+
"resources": [
150702+
{
150703+
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{}",
150704+
"plane": "mgmt-plane",
150705+
"version": "2024-07-01"
150706+
}
150707+
]
150666150708
}
150667150709
]
150668150710
},
@@ -150820,6 +150862,24 @@
150820150862
"version": "2024-01-01"
150821150863
}
150822150864
]
150865+
},
150866+
{
150867+
"examples": [
150868+
{
150869+
"commands": [
150870+
"network vnet subnet list -g MyResourceGroup --vnet-name MyVNet"
150871+
],
150872+
"name": "List the subnets in a virtual network."
150873+
}
150874+
],
150875+
"name": "2024-07-01",
150876+
"resources": [
150877+
{
150878+
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets",
150879+
"plane": "mgmt-plane",
150880+
"version": "2024-07-01"
150881+
}
150882+
]
150823150883
}
150824150884
]
150825150885
},
@@ -151084,6 +151144,24 @@
151084151144
"version": "2024-01-01"
151085151145
}
151086151146
]
151147+
},
151148+
{
151149+
"examples": [
151150+
{
151151+
"commands": [
151152+
"network vnet subnet show -g MyResourceGroup -n MySubnet --vnet-name MyVNet"
151153+
],
151154+
"name": "Show the details of a subnet associated with a virtual network."
151155+
}
151156+
],
151157+
"name": "2024-07-01",
151158+
"resources": [
151159+
{
151160+
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{}",
151161+
"plane": "mgmt-plane",
151162+
"version": "2024-07-01"
151163+
}
151164+
]
151087151165
}
151088151166
]
151089151167
},
@@ -151457,6 +151535,42 @@
151457151535
"version": "2024-01-01"
151458151536
}
151459151537
]
151538+
},
151539+
{
151540+
"examples": [
151541+
{
151542+
"commands": [
151543+
"network vnet subnet update -g MyResourceGroup -n MySubnet --vnet-name MyVNet --network-security-group MyNsg"
151544+
],
151545+
"name": "Associate a network security group to a subnet."
151546+
},
151547+
{
151548+
"commands": [
151549+
"network vnet subnet update -n MySubnet --vnet-name MyVnet -g MyResourceGroup --nat-gateway MyNatGateway --address-prefixes \"10.0.0.0/21\""
151550+
],
151551+
"name": "Update subnet with NAT gateway."
151552+
},
151553+
{
151554+
"commands": [
151555+
"network vnet subnet update -n MySubnet --vnet-name MyVnet -g MyResourceGroup --private-endpoint-network-policies Disabled"
151556+
],
151557+
"name": "Disable the private endpoint network policies."
151558+
},
151559+
{
151560+
"commands": [
151561+
"network vnet subnet update -g MyResourceGroup --vnet-name MyVNet -n MySubnet --nsg null"
151562+
],
151563+
"name": "Detach a network security group in a subnet."
151564+
}
151565+
],
151566+
"name": "2024-07-01",
151567+
"resources": [
151568+
{
151569+
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/subnets/{}",
151570+
"plane": "mgmt-plane",
151571+
"version": "2024-07-01"
151572+
}
151573+
]
151460151574
}
151461151575
]
151462151576
}

Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ZpcnR1YWxuZXR3b3Jrcy97fS9zdWJuZXRz/2024-07-01.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)