Offboarding Overview
During onboarding, ContraForce deploys resources to your environment. Complete offboarding requires removing:Enterprise Applications
Azure Resources
Role Assignments
Agent Infrastructure
Before You Begin
Prerequisites
Admin Access
Azure Permissions
Document Current State
Export Data
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
Open Enterprise Applications
Search for ContraForce
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:Select the Application
Open Properties
Delete Application
Confirm Deletion
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
Navigate to Resource Groups
Find Apollo Resource Group
rg-contraforce-apolloDelete Resource Group
Confirm Deletion
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.Navigate to Sentinel Resource Group
Delete API Connection
microsoftsentinel-Publish-Incident-To-ApolloDelete Logic App
Publish-Incident-To-ApolloDelete Automation Rule
Run-Playbook-Publish-Incident-To-ApolloDeleting Individual Resources
For each resource:Select Resource
Click Delete
Confirm
Step 3: Remove Role Assignments
ContraForce was granted RBAC permissions on your Azure resources. These should be removed.Finding Role Assignments
Navigate to Resource Group
Open Access Control
View Role Assignments
Find ContraForce
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
Select Assignment
Click Remove
Confirm
Step 4: Remove Agent Resource Groups (If Applicable)
If you deployed ContraForce AI Agents, additional resource groups must be removed.Agent Center Resource Group
Find Agent Center
cf-rg-agent-centerDelete Resource Group
Confirm
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:Search for Agent Groups
cf-rg-agent-*Delete Each Group
Confirm Each Deletion
Step 5: Remove Azure Lighthouse Delegation (If Applicable)
If Azure Lighthouse was configured for cross-tenant management, remove the delegation.Navigate to Service Providers
View Delegations
Find ContraForce
Remove 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
Search Applications
Verify Empty Results
Check Azure Resources
Search Resources
Verify Empty Results
Check Role Assignments
Review IAM
Verify No ContraForce
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”:Navigate to Resource Group
Open Locks
Delete Locks
Retry Deletion
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