Microsoft Teams being the best collaborative solution there are lots of supported smart devices which are equipped with Microsoft teams App for providing the smart meeting room systems with modern cameras, microphones and display screens. The nicest aspect of Teams room application is that it can function well in all ranges of supported devices as stated here with a support of basic hardware and running on a windows 10 IOT operating system running in appliance mode.
While there are numerous approaches to monitor the Microsoft Teams room systems this article we will go through the steps to monitor them through Azure Log Analytics.Like other applications Microsoft Teams App running on room devices will write all the events on the event logs.Through the Microsoft Monitoring agent in Microsoft Teams it allows these events to be collected in Azure log Analytics.
- Subscription with Azure to configure log analytics workspace.
- Teams meeting room system with internet connectivity. There are other methods to collect the logs without internet through Log Analytics gateway in this approach we are going with direct agent method.
- The Teams devices must be running on a supported Teams windows operating system as listed here on all meeting rooms on a KIOSK mode or probably on a full operating system mode based on the requirements.
Since we are going to leverage Azure Log Analytics as a monitoring solution for our room systems the first step here is to Create Azure Log Analytics and integrate them with Microsoft windows agent.
In order to do that login to Azure Subscription – And then log into log analytics workspace
Create new log analytics workspaces. We can use the existing workspace as well and it purely depends on the requirement. Its best recommended to have a separate workspace only for Meeting Rooms.
Choose the required subscription
Once the Log analytics workspace is created , we need to go ahead and download the windows agent. The agent can be downloaded by navigating to Log Analytics Workspaces – Workspace name – Advanced Settings – Connected sources – Windows servers – Download the windows agent.
Next step is to Install the MMA agent on Teams room system device – Since its a demo on one device we are manually doing this step. If its going to be for bulk devices then we can think of deploying them via Intune if they are already enrolled in Intune via windows app (win32).
Select only the option connect the agent to azure log analytics (OMS) because in our case we are not monitoring them via a local monitoring agent SCOM.
Enter the workspace ID and the key from the log analytics workspace and select Azure Commercial. If the network is going through proxy then click advanced and provide the proxy configuration. If the device is not having connection to the internet then the agent cannot send the logs to log analytics workspace.
Once installed we can see the Microsoft Monitoring Agent present on the control panel.
Once opened can see the Azure log analytics (OMS) and see the status to be successful.
On editing the workspace we can see the workspace ID and the Workspace Key.
Usually it takes a while to collect the logs to Azure Monitoring agent.
Configure the required logs to monitor:
Once the log analytics workspace is being collected we need to configure the data sources so that the log analytics workspace can start collecting the required data for monitoring the Teams Room Systems.
In our case for monitoring the teams device, we need to collect teams app logs and few hardware related events. We will look into configuring them now.
Note: We have to be very choosy here on collecting only the required events, since dumping logs to azure log analytics involves cost in it and best recommended to choose only the required events.
In order to collect the logs navigate to advanced settings – Choose data sources – select windows event logs
The key primary log that needs to be collected is Skype Room System (we have to type them completely and click add as this log entry will not autocomplete)
There are few more log events that can be added, but added these logs which might be helping on monitoring the Teams room devices.
Having added the windows event logs, we can navigate to windows performance counters and there are few events which can be added and useful for us to notify when the devices are having any of the below issues on them.
Querying the logs:
Once we have configured the required log sources it’s the time for us to run some queries and see if the logs are been collected. The azure log analytics workspace works well with Kusto Query Language and SQL Query Language.
There are default queries like Computers availability today , list heartbeats and unavailable computers.
Once selecting on the default templates list heart beats and can click on run the below results is obtained.
To see only the Application Event logs we can run the below query
search * | where Type == "Event" | where EventLog == "Application"
To see only the Errors generated in the application event logs
search * | where Type == "Event" | where EventLog == "Application" | where EventLevelName == "Error"
To drill down more and look into the perfmon logs ran the below query to check the system up time.
Perf| where CounterName == "System Up Time"|summarize avg(CounterValue) by bin(TimeGenerated, 1h)
There are lot of queries which can be built from these collected events. Having collected these events , we can configure them to display as dashboards and collect alerting mechanisms for the critical events. In the next post we will have a look at how to configure the alerting systems for critical events that’s happening on the meeting room devices.
Thanks & Regards