Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes how to remove the Chaos Agent from your virtual machine (VM) or virtual machine scale set.
Using the Azure portal
To uninstall the Chaos Agent from your VMs:
- Open Azure Chaos Studio in the Azure portal.
- Select the VM with the agent installed from the Targets page
- Click Disable Agent-Based Faults in the top left.
- Follow the steps to disable agent-based faults from the VM
This action automatically uninstalls the Chaos Agent from all associated targets.
Using the Azure CLI
To manually remove the Chaos Agent extension, run the following command:
az vm extension delete --resource-group <ResourceGroupName> --vm-name <VMName> --name ChaosAgent
For Virtual Machine Scale Sets (VMSS), use:
az vmss extension delete --resource-group <ResourceGroupName> --vmss-name <VMSSName> --name ChaosAgent
Replace ResourceGroupName, VMName, and VMSSName with your actual resource names.
Note
If you uninstall the agent and also want to remove stress-ng
, you will need to use the appropriate package manager command (for example yum remove
for RHEL-based systems) for your operating system.
Here is an example of removing stress-ng
from an Ubuntu-based system:
sudo apt-get remove --purge stress-ng