Skip to content

Commit d8b814a

Browse files
committed
Add Network Isolation
1 parent 26acf47 commit d8b814a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

articles/chaos-studio/chaos-studio-fault-library.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,47 @@ The parameters **destinationFilters** and **inboundDestinationFilters** use the
400400
* When running on Linux, this fault can only affect **outbound** traffic, not inbound traffic. The fault can affect **both inbound and outbound** traffic on Windows environments (via the `inboundDestinationFilters` and `destinationFilters` parameters).
401401
* This fault currently only affects new connections. Existing active connections are unaffected. You can restart the service or process to force connections to break.
402402

403+
### Network Isolation
404+
405+
| Property | Value |
406+
|-|-|
407+
| Capability name | NetworkIsolation-1.0 |
408+
| Target type | Microsoft-Agent |
409+
| Supported OS types | Windows, Linux (outbound traffic only) |
410+
| Description | Fully isolate the virtual machine from network connections by dropping all IP-based inbound (on Windows) and outbound (on Windows and Linux) packets for the specified duration. At the end of the duration, network connections will be re-enabled. Because the agent depends on network traffic, this action cannot be cancelled and will run to the specified duration. |
411+
| Prerequisites | **Windows:** The agent must run as administrator, which happens by default if installed as a VM extension. |
412+
| | **Linux:** The `tc` (Traffic Control) package is used for network faults. If it isn't already installed, the agent automatically attempts to install it from the default package manager. |
413+
| Urn | urn:csci:microsoft:agent:networkIsolation/1.0 |
414+
| Fault type | Continuous. |
415+
| Parameters (key, value) | |
416+
| virtualMachineScaleSetInstances | An array of instance IDs when you apply this fault to a virtual machine scale set. Required for virtual machine scale sets in uniform orchestration mode, optional otherwise. [Learn more about instance IDs](../virtual-machine-scale-sets/virtual-machine-scale-sets-instance-ids.md#scale-set-instance-id-for-uniform-orchestration-mode). |
417+
418+
#### Sample JSON
419+
420+
```json
421+
{
422+
"name": "branchOne",
423+
"actions": [
424+
{
425+
"type": "continuous",
426+
"name": "urn:csci:microsoft:agent:networkIsolation/1.0",
427+
"parameters": [],
428+
"duration": "PT10M",
429+
"selectorid": "myResources"
430+
}
431+
]
432+
}
433+
```
434+
435+
#### Limitations
436+
437+
* Because the agent depends on network traffic, **this action cannot be cancelled** and will run to the specified duration. Use with caution.
438+
* The agent-based network faults currently only support IPv4 addresses.
439+
* When running on Windows, the network packet loss fault currently only works with TCP or UDP packets.
440+
* When running on Linux, this fault can only affect **outbound** traffic, not inbound traffic. The fault can affect **both inbound and outbound** traffic on Windows environments (via the `inboundDestinationFilters` and `destinationFilters` parameters).
441+
* This fault currently only affects new connections. Existing active connections are unaffected. You can restart the service or process to force connections to break.
442+
443+
403444
### DNS Failure
404445

405446
| Property | Value |

0 commit comments

Comments
 (0)