Skip to content
Clean-up SCCM CMG Cloud Services from ConfigMgr Cloud Management Gateway

Clean-up SCCM CMG Cloud Services from ConfigMgr Cloud Management Gateway

Written By Anoop C Nair
Last Updated August 9, 2024
Posted In SCCM
SHARE

Let’s discuss the Clean-up of SCCM CMG Cloud Services from ConfigMgr Cloud Management Gateway. Most SCCM admins have isolated lab environments to test the new features of SCCM.

Setting up Azure cloud services for testing new SCCM CMG (Cloud Management Gateway), Azure AD User Discovery, and Cloud DP is costly.

I recommend creating an Azure trial subscription to test the SCCM features. You will learn how to remove SCCM CMG and other cloud services from this post.

Can’t Delete or Remove Azure AD Apps (used for Cloud Services) from SCCM Console? Here is the guide to removing those from MEMCM using WMI | WBEMTEST https://www.anoopcnair.com/remove-azure-ad-apps-from-sccm-using-wmi-delete/

Patch My PC

Tips Before Removing SCCM CMG and Cloud Services

Don’t remove the Azure PaaS server and blob storage before removing the CMG from the SCCM console. Follow the steps below to remove the SCCM CMG (Cloud Management Gateway) from your environment.

When you have enabled SCCM CMG as CDP, your Cloud DP will also get removed when you delete or remove SCCM CMG.

Ensure your internet client management won’t be impacted when you perform this deletion action in a production environment. You should have an additional CMG for internet client management.

You need to remove SCCM CMG and other cloud services in different scenarios. One situation is to clean up your lab environment.

Another situation is to remove SCCM CMG or other cloud services like Azure AD user discovery as part of troubleshooting or migration.

Remove SCCM CMG Tips Before Removing SCCM CMG and Cloud Services
Tips Before Removing SCCM CMG and Cloud Services 1

Video Tutorial – How to Remove SCCM CMG and Cloud Services?

The following topics are discussed in the video tutorial. I hope this will give a video experience and a better understanding.

  • Why Delete Azure Cloud Services
  • Check Azure Portal before Deleting
  • Remove SCCM CMG and Cloud DP
  • Remove the SCCM Cloud Management Connection Point Role
  • How to validate SCCM CMG Deletion (Log Files)
  • Remove Cloud Services and Azure AD User Discovery
  • Remove Co-Management Configurations
  • Remove Azure Active Directory Tenants

[Related PostHow to Remove SCCM Cloud DP]

Clean-up SCCM CMG Cloud Services from ConfigMgr Cloud Management Gateway 2

How to Remove SCCM CMG (Cloud Management Gateway & CDP)?

Yes, removing or deleting Cloud DP and CMG is easy compared to installing both roles or services. Follow the steps below to remove SCCM CMG and configure Cloud DP in the CMG.

  1. Navigate to \Administration\Overview\Cloud Services\Cloud Management Gateway
  2. Select the Cloud Management Gateway, go to properties, and select Content. Then, ensure no packages are distributed (other than default packages, which can’t be removed) to that Cloud DP.
  3. Click on the Delete button from the ribbon menu to remove SCCM CMG
  4. Click on the Yes button from the confirmation windows to initiate the CMG deletion process
  5. Step #4 launches the deletion process from the SCCM side and Azure side as well
Remove SCCM CMG
Clean-up SCCM CMG Cloud Services from ConfigMgr Cloud Management Gateway 3

How to Confirm Whether SCCM CMG is Removed?

You can confirm whether the SCCM CMG got removed from Azure and SCCM. The best way is to check the log files like CloudMgr.log. Another option is to check the status monitoring in the Cloud Management Gateway node in the SCCM console.

Another option is to check the Azure Portal to confirm whether the SCCM CMG Azure blob storage account and Azure CMG Virtual server (PaaS) were removed.

How to – Remove the SCCM Cloud Management Connection Point Role?

You can remove the connector role before or after removing SCCM CMG. In the above video and this guide, I removed the SCCM cloud management connection point role after removing CMG.

Follow the steps to remove the SCCM cloud management connection point role.

  1. Navigate to \Administration\Overview\Site Configuration\Servers and Site System Roles
  2. Select the server where you have installed the CMG connection point role
  3. Go to Details Pane in the SCCM console, then Right-click & select Remove Role – the cloud management connection point role
  4. The above step #3 launches the process of deleting the part from the SCCM primary server or remote site system
Remove SCCM CMG Connection Point
How to – Remove SCCM Cloud Management Connection Point Role? 4

[Related PostHow to Remove SCCM Cloud DP]

Remove – Azure AD User Discovery and Azure Services from SCCM

You can remove the Azure Active Directory user discovery details from the SCCM console. This option is available under the Azure services node.

  1. Navigate to \Administration\Overview\Cloud Services\Azure Services
  2. Select the Azure service name from which you want to remove the AAD User discovery
  3. Go to Details Pane in the SCCM console, then Right-click & select Remove the discovery (optional)
  4. Right-click on the Azure Service name and Delete

Remove – Azure Active Directory Tenants and Server and Client Azure Apps

You can remove the Azure Active Directory tenant details from the SCCM console. This option is available under the Azure Active Directory tenant node.

From this node, you can delete Azure server and client apps created during the cloud service onboarding process.

  1. Navigate to \Administration\Overview\Cloud Services\Azure Active Directory Tenant
  2. Select the Azure Tenant name which you want to remove the server and client apps
  3. Go to the Details Pane in the SCCM console, then Right-click and select Remove the server app and then the client app. Alternatively, you can click on the DELETE button from the ribbon menu.
  4. Right-click on Azure Active Directory Tenant name and Delete to remove the tenant details from SCCM

Remove – Co-Management Configurations from SCCM

You can remove the co-management details from the SCCM console. This option is available under the Co-Management node. From this node, you can delete SCCM co-management configurations.

  1. Navigate to \Administration\Overview\Cloud Services\Co-Management
  2. Select the Co-management option list view
  3. Right-click on Co-Management configuration and Delete to remove the co-management configuration from SCCM
Remove SCCM CMG - Co-management
Remove – Azure Active Directory Tenants and Server and Client Azure Apps 5

Resources

How to Setup Co-Management Video Tutorials

Integrate Apps with Azure AD – https://docs.microsoft.com/en-gb/azure/active-directory/develop/quickstart-v1-integrate-apps-with-azure-ad

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Anoop C Nair is Microsoft MVP! He is a Device Management Admin with more than 20 years of experience (calculation done in 2021) in IT. He is a Blogger, Speaker, and Local User Group HTMD Community leader. His primary focus is Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 6 comments

  1. Hi Anoop,

    I deleted and recreate the Azure service. I am getting the following error message.

    —————————
    Configuration Manager
    —————————
    Another object with the same value for property identifierUris already exists.For more details you can refer to the AdminUILog.
    —————————
    OK
    —————————

    Please guide me.

  2. Just out of my experience.
    In case your account has access to multiple tenants and you are receiving the error “Another object with the same value for property identifierUris already exists.”
    The wizard will create the apps in your default tenant so make sure to check the other Azure AD’s you have permissions on.
    In my case the wizard created the apps in the wrong tenant, while I was searching for the apps in the tenant of the customer… 🙂

  3. Hello!
    It seems like there is no “Right-click & select Remove the server app and then client app.”.
    Was this possible in older Versions of SCCM?
    Thank you.

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read