Skip to content

Commit 5a5e91b

Browse files
Final commands. Still need to add examples.
1 parent 0391ce2 commit 5a5e91b

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

articles/operator-nexus/how-to-ip-prefixes.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ To create an IP Prefix resource, follow these steps: 
5454
- `GreaterThanOrEqualTo`: The condition is true when the network prefix of the route is greater than or equal to the network prefix of the rule.
5555
5656
57-
- `networkPrefix`: The network segment to match. It's specified as an IP address and a prefix length, such as 10.10.10.0/28 or 2001:db8::/64. 
57+
- `networkPrefix`: The network segment to match. It's an IP address and a prefix length, such as 10.10.10.0/28 or 2001:db8::/64. 
5858
5959
- `sequenceNumber`: The order of evaluation of the rule, from lowest to highest. The rule with the lowest sequence number is evaluated first, and the rule with the highest sequence number is evaluated last. If a rule matches the route, the evaluation stops and the action of the rule is executed. If no rule matches the route, the default action is Deny. 
6060
6161
62-
1. Create the IP Prefix resource using the azcli command. You can use the same command as in the previous step, or modify it as per your requirements.
62+
2. Create the IP Prefix resource using the azcli command. You can use the same command as in the previous step, or modify it as per your requirements.
6363
6464
3. Verify that the IP Prefix resource is created successfully. You can use the `az networkfabric ipprefix show` command to show the details of the IP Prefix resource. You can use the following example as a reference: 
6565
@@ -71,7 +71,7 @@ To create an IP Prefix resource, follow these steps: 
7171
7272
In this example, `myResourceGroup` is the name of the resource group where you created the IP Prefix resource, and `myIpPrefix` is the name of the IP Prefix resource. 
7373
74-
The response should contain the properties and rules of the IP Prefix resource, such as the id, type, ipPrefixRules, location, name, provisioningState, resourceGroup, and tags. 
74+
The response should contain the properties and rules of the IP Prefix resource, such as the ID, type, ipPrefixRules, location, name, provisioningState, resourceGroup, and tags. 
7575
7676
### Show an IP Prefix resource
7777
@@ -127,5 +127,21 @@ To update an IP Prefix resource, follow these steps: 
127127
128128
In this example, `resourceGroupName` is the name of the resource group where you created the IP Prefix resource, `ipPrefixName` is the name of the IP Prefix resource, and the `--add` option adds a new rule to the ipPrefixRules property. The new rule denies routes with network prefix 30.30.30.0/24 and has a sequence number of 30. 
129129
130+
## Deleting an IP Prefix resource 
130131
132+
To delete an existing IP Prefix resource by its ID or name, use the following command: 
131133
134+
```azurecli
135+
# Delete an IP Prefix resource by its name
136+
az networkfabric ipprefix delete \
137+
--resource-group myResourceGroup \
138+
--name myIpPrefix
139+
```
140+
141+
The REST API request body for deleting an IP Prefix resource by its ID is as follows: 
142+
143+
```
144+
{
145+
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/myIpPrefix"
146+
}
147+
```

0 commit comments

Comments
 (0)