Offboarding Overview
During onboarding, ContraForce deploys resources to your environment. Complete offboarding requires removing:Enterprise Applications
ContraForce service principals in Microsoft Entra ID
Azure Resources
Resource groups, Logic Apps, and API connections
Role Assignments
RBAC permissions granted to ContraForce
Agent Infrastructure
AI agent resource groups (if deployed)
Before You Begin
Prerequisites
What Was Deployed?
The resources you need to remove depend on your deployment:| Deployment Type | Resources to Remove |
|---|---|
| XDR Module Only | Enterprise applications only |
| XDR + SIEM Module | Enterprise applications + Apollo resources + Sentinel resources |
| With AI Agents | All above + Agent Center resource groups |
Step 1: Remove Enterprise Applications
Enterprise applications consented during onboarding must be removed from Microsoft Entra ID.Accessing Enterprise Applications
- Microsoft Entra Admin Center
- Azure Portal
Navigate to Admin Center
Go to entra.microsoft.com
Applications to Remove
Remove the following enterprise applications:| Application Name | Application ID |
|---|---|
| ContraForce API | 24d97bc0-8f2b-45d5-8e0b-7fe286732ef2 |
| ContraForce Portal | 8b7cb435-9526-47ee-b79a-34433f0daad2 |
| ContraForce Sentinel Hunting | 6bf1c74d-7ade-4671-a507-166936f89a1f |
| ContraForce for MDE | 6efccc6a-f0d3-49e5-92d0-17d4afa9ba52 |
| ContraForce Gamebooks for MDE | ad7b0e79-3c37-4408-bf8f-eb89522cc920 |
| ContraForce Gamebooks for Identity | 36b0d51c-4c0f-4810-9cc4-bfbd40c7dd4a |
| ContraForce User Management | 460b65b7-3a5e-4a2c-98d0-e48fd35374a9 |
| ContraForce Gamebooks for Email | 44dbf6fe-45e3-48a3-bac3-f8d4cf1dba6d |
Deleting an Enterprise Application
For each application in the list above:Not all applications may be present—only delete applications that exist in your directory. The applications present depend on which modules and features were enabled during onboarding.
Step 2: Remove Azure Resources (Sentinel Deployments)
If you deployed the XDR + SIEM module with Microsoft Sentinel, remove the following Azure resources.Remove Apollo Resource Group
The Apollo resource group contains the infrastructure for real-time incident notifications.Open Azure Portal
Go to portal.azure.com
Resources in Apollo Resource Group
The following resources are removed when you delete this resource group:| Resource Type | Name |
|---|---|
| Log Analytics Workspace | contraforce-apollo-* |
| Application Insights | contraforce-apollo-* |
| Function App | contraforce-apollo-* |
| App Service Plan | contraforce-apollo-* |
| Storage Account | contraforceapollo* |
Remove Sentinel Workspace Resources
Resources were also deployed to the resource group containing your Microsoft Sentinel workspace.Deleting Individual Resources
For each resource:Step 3: Remove Role Assignments
ContraForce was granted RBAC permissions on your Azure resources. These should be removed.Finding Role Assignments
Role Assignments to Remove
| Service Principal | Role | Scope |
|---|---|---|
| ContraForce API | Sentinel Contributor | Sentinel resource group |
| ContraForce API | Reader | Sentinel resource group |
Removing a Role Assignment
Step 4: Remove Agent Resource Groups (If Applicable)
If you deployed ContraForce AI Agents, additional resource groups must be removed.Agent Center Resource Group
Resources in Agent Center
| Resource Type | Description |
|---|---|
| AI Foundry | AI model hosting |
| CosmosDB | Agent data storage |
| Container Apps Environment | Agent runtime |
| Virtual Network | Network isolation |
| Key Vaults | Secret management |
| Storage Accounts | Agent file storage |
Per-Agent Resource Groups
Each deployed agent has its own resource group:Step 5: Remove Azure Lighthouse Delegation (If Applicable)
If Azure Lighthouse was configured for cross-tenant management, remove the delegation.Offboarding Checklist
Use this checklist to ensure complete removal:Enterprise Applications
- ContraForce API removed
- ContraForce Portal removed
- ContraForce Sentinel Hunting removed
- ContraForce for MDE removed
- ContraForce Gamebooks for MDE removed
- ContraForce Gamebooks for Identity removed
- ContraForce User Management removed
- ContraForce Gamebooks for Email removed
Azure Resources (Sentinel Deployments)
-
rg-contraforce-apolloresource group deleted -
microsoftsentinel-Publish-Incident-To-ApolloAPI connection deleted -
Publish-Incident-To-ApolloLogic App deleted -
Run-Playbook-Publish-Incident-To-ApolloAutomation Rule deleted - ContraForce API role assignments removed
Agent Resources (If Applicable)
-
cf-rg-agent-centerresource group deleted - All
cf-rg-agent-*resource groups deleted
Azure Lighthouse (If Applicable)
- ContraForce delegation removed
Verifying Complete Removal
After completing the offboarding steps, verify removal:Check Enterprise Applications
Check Azure Resources
Check Role Assignments
Troubleshooting
Common Issues
| Issue | Possible Cause | Solution |
|---|---|---|
| Can’t delete enterprise app | Insufficient permissions | Ensure you have Global Administrator role |
| Resource group won’t delete | Resources have locks | Remove resource locks before deleting |
| Role assignment won’t remove | Permission denied | Ensure you have Owner access to the subscription |
| Can’t find Apollo resource group | Different naming | Search for “contraforce” in all resource groups |
| Logic App deletion fails | Automation rule dependency | Delete the automation rule first |
Resource Locks
If you encounter “Cannot delete due to resource locks”:Re-Onboarding After Offboarding
If you need to reconnect ContraForce in the future:- Contact the ContraForce team for a new onboarding wizard link
- Follow the standard onboarding process
- All resources will be recreated
- Historical data from before offboarding will not be available
Offboarding is permanent. If you think you may reconnect in the future, consider disabling functionality instead of fully removing it. Contact [email protected] to discuss options.
Getting Help
If you encounter issues during offboarding:Related Guides
Enterprise Applications
Overview of all service principals
Azure Resources Deployed
Complete resource documentation
XDR Onboarding
Re-onboarding the XDR module
Sentinel Onboarding
Re-onboarding the SIEM module
Questions about offboarding? Contact us at [email protected].