Cleaning up the resource group associated with a Secure Agent is an important part of Azure troubleshooting or cleanup.
Every runtime environment consists of a Secure Agent with its own resource group. Clean up the resource group after you perform any of the following actions:
•You delete the Secure Agent. Deleting an agent from Data Integration does not clear the VM resources. To clear the resources manually, delete the resource group associated with the Secure Agent through the Azure portal.
You can delete a Secure Agent for any reason: it didn't install or start correctly, or you don't need the agent anymore.
•You are troubleshooting VM creation or startup errors. Use the deployment logs to help you locate the cause of the problem, and then remove the resource group.