You can connect System Center Configuration Manager to Log Analytics in OMS to sync device collection data. This makes data from your Configuration Manager deployment available in OMS.
There are a number of steps needed to connect Configuration Manager to OMS, so here’s a quick rundown of the overall process:
- In the Azure Management Portal, register Configuration Manager as a Web Application and/or Web API app, and ensure that you have the client ID and client secret key from the registration from Azure Active Directory. See Use portal to create Active Directory application and service principal that can access resources for detailed information about how accomplish this step.
- In the Azure Management Portal, provide Configuration Manager (the registered web app) with permission to access OMS.
- In Configuration Manager, add a connection using the Add OMS Connection Wizard.
- In Configuration Manager, you can update the connection properties if the password or client secret key ever expires or is lost.
- With information from the OMS portal, download and install the Microsoft Monitoring Agent on the computer running the Configuration Manager service connection point site system role. The agent sends Configuration Manager data to OMS.
- In OMS, import collections from Configuration Manager as computer groups.
- In OMS, view data from Configuration Manager as computer groups.
You can read more about connecting Configuration Manager to OMS at Sync data from Configuration Manager to the Microsoft Operations Management Suite.
The following procedure provides the Azure Management Portal with permissions to access OMS. Specifically, you must grant the Contributor role to users in the resource group. In turn, that allows the Azure Management Portal to connect Configuration Manager to OMS.
You must specify permissions to OMS for Configuration Manager. Otherwise, you’ll receive an error message when you use the configuration wizard in Configuration Manager.
- Open the Azure portal and click Browse > Log Analytics (OMS) to open the Log Analytics (OMS) blade.
- On the Log Analytics (OMS) blade, click Add to open the OMS Workspace blade.
- On the OMS Workspace blade, provide the following information and then click OK.
- OMS Workspace
- Resource group
- Pricing tier
- Click Browse > Resource groups to open the Resource groups blade.
- In the Resource groups blade, click the resource group that you created above to open the <resource group name> settings blade.
- In the <resource group name> settings blade, click Access control (IAM) to open the <resource group name> Users blade.
- In the <resource group name> Users blade, click Add to open the Add access blade.
- In the Add access blade, click Select a role, and then select the Contributor role.
- Click Add users, select the Configuration Manager user, click Select, and then click OK.
In order to add an OMS connection, your Configuration Manager environment must have a service connection point configured for online mode.
- In the Administration workspace of Configuration Manager, select OMS Connector. This opens the Add OMS Connection Wizard. Select Next.
- On the General screen, confirm that you have done the following actions and that you have details for each item, then select Next.
- In the Azure Management Portal, you’ve registered Configuration Manager as a Web Application and/or Web API app, and that you have the client ID from the registration.
- In the Azure Management Portal, you’ve created an app secret key for the registered app in Azure Active Directory.
- In the Azure Management Portal, you’ve provided the registered web app with permission to access OMS.
- On the Azure Active Directory screen, configure your connection settings to OMS by providing your Tenant , Client ID , and Client Secret Key , then select Next.
- If you accomplished all the other procedures successfully, then the information on the OMS Connection Configuration screen will automatically appear on this page. Information for the connection settings should appear for your Azure subscription , Azure resource group , and Operations Management Suite Workspace.
- The wizard connects to the OMS service using the information you’ve input. Select the device collections that you want to sync with OMS and then click Add.
- Verify your connection settings on the Summary screen, then select Next. The Progress screen shows the connection status, then should Complete.
You must connect OMS to the top-tier site in your hierarchy. If you connect OMS to a standalone primary site and then add a central administration site to your environment, you’ll have to delete and recreate the OMS connection within the new hierarchy.
After you have linked Configuration Manager to OMS, you can add or remove collections, and view the properties of the OMS connection.
If a password or client secret key ever expires or is lost, you’ll need to manually update the OMS connection properties.
- In Configuration Manager, navigate to Cloud Services , then select OMS Connector to open the OMS Connection Properties page.
- On this page, click the Azure Active Directory tab to view your Tenant, Client ID, Client secret key expiration. Verify your Client secret key if it has expired.
- In the OMS portal, Download the agent setup file from OMS.
- Use one of the following methods to install and configure the agent on the computer running the Configuration Manager service connection point site system role:
After you’ve added an OMS connection to Configuration Manager and installed the agent on the computer running the Configuration Manager service connection point site system role, the next step is to import collections from Configuration Manager in OMS as computer groups.
After importation is enabled, the collection membership information is retrieved every 3 hours to keep the collection memberships current. You can choose to disable importation at any time.
- In the OMS portal, click Settings.
- Click the Computer Groups tab and then click the SCCM tab.
- Select Import Configuration Manager collection memberships and then click Save.
After you’ve added an OMS connection to Configuration Manager and installed the agent on the computer running the Configuration Manager service connection point site system role, data from the agent is sent to OMS. In OMS, your Configuration Manager collections appear as computer groups. You can view the groups from the Configuration Manager page under Computer Groups in Settings.
After the collections are imported, you can see how many computers with collection memberships have been detected. You can also see the number of collections that have been imported.
When you click either one, Search opens, displaying either all of the imported groups or all computers that belong to each group. Using Log Search, you can start in-depth analysis for Configuration Manager data.