Skip to content

Commit ce278e8

Browse files
authored
Merge pull request #230687 from v-jbasden/v-jbasden-computer-groups-freshness
Updating logs/computer-groups.md for freshness
2 parents c7a0d5d + 08a0bbf commit ce278e8

File tree

2 files changed

+17
-56
lines changed

2 files changed

+17
-56
lines changed

articles/azure-monitor/logs/computer-groups.md

Lines changed: 17 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,24 @@ description: Computer groups in Azure Monitor allow you to scope log queries to
44
ms.topic: conceptual
55
author: bwren
66
ms.author: bwren
7-
ms.date: 10/20/2021
7+
ms.date: 03/14/2023
88

99
---
1010

1111
# Computer groups in Azure Monitor log queries
12-
Computer groups in Azure Monitor allow you to scope [log queries](./log-query-overview.md) to a particular set of computers. Each group is populated with computers either using a query that you define or by importing groups from different sources. When the group is included in a log query, the results are limited to records that match the computers in the group.
12+
Computer groups in Azure Monitor allow you to scope [log queries](./log-query-overview.md) to a particular set of computers. Each group is populated with computers using a query that you define. When the group is included in a log query, the results are limited to records that match the computers in the group.
1313

1414
[!INCLUDE [azure-monitor-log-analytics-rebrand](../../../includes/azure-monitor-log-analytics-rebrand.md)]
1515

1616
## Creating a computer group
17-
You can create a computer group in Azure Monitor using any of the methods in the following table. Details on each method are provided in the sections below.
17+
You can create a computer group in Azure Monitor using the methods in the following table. Details on each method are provided in the sections below.
1818

1919
| Method | Description |
2020
|:--- |:--- |
2121
| Log query |Create a log query that returns a list of computers. |
22-
| Log Search API |Use the Log Search API to programmatically create a computer group based on the results of a log query. |
23-
| Active Directory |Automatically scan the group membership of any agent computers that are members of an Active Directory domain and create a group in Azure Monitor for each security group. (Windows machines only)|
24-
| Configuration Manager | Import collections from Microsoft Configuration Manager and create a group in Azure Monitor for each. |
25-
| Windows Server Update Services |Automatically scan WSUS servers or clients for targeting groups and create a group in Azure Monitor for each. |
22+
| Active Directory | No longer supported |
23+
| Configuration Manager | No longer supported |
24+
| Windows Server Update Services | No longer supported |
2625

2726
### Log query
2827
Computer groups created from a log query contain all of the computers returned by a query that you define. This query is run every time the computer group is used so that any changes since the group was created is reflected.
@@ -37,44 +36,34 @@ Use the following procedure to create a computer group from a log search in the
3736

3837
1. Click **Logs** in the **Azure Monitor** menu in the Azure portal.
3938
1. Create and run a query that returns the computers that you want in the group.
40-
1. Click **Save** at the top of the screen.
41-
1. Change **Save as** to **Function** and select **Save this query as a computer group**.
39+
1. Click **Save** at the top of the screen, and select **Save as function** from the dropdown.
40+
1. Select **Save as computer group**.
4241
1. Provide values for each property for the computer group described in the table and click **Save**.
4342

4443
The following table describes the properties that define a computer group.
4544

4645
| Property | Description |
4746
|:---|:---|
48-
| Name | Name of the query to display in the portal. |
49-
| Function alias | A unique alias used to identify the computer group in a query. |
50-
| Category | Category to organize the queries in the portal. |
47+
| Function name | Name of the query to display in the portal. |
48+
| Legacy category | Category to organize the queries in the portal. |
49+
| Parameters | Add a parameter for each variable in the function that requires a value when it's used. For more information, see [Function parameters](functions.md#function-parameters). |
5150

5251

5352
### Active Directory
54-
When you configure Azure Monitor to import Active Directory group memberships, it analyzes the group membership of any Windows domain joined computers with the Log Analytics agent. A computer group is created in Azure Monitor for each security group in Active Directory, and each Windows computer is added to the computer groups corresponding to the security groups they are members of. This membership is continuously updated every 4 hours.
55-
56-
> [!NOTE]
57-
> Imported Active Directory groups only contain Windows machines.
58-
59-
You configure Azure Monitor to import Active Directory security groups from the **Legacy computer groups** menu item in your Log Analytics workspace in the Azure portal. Select the **Active Directory** tab, and then **Import Active Directory group memberships from computers**. When groups have been imported, the menu lists the number of computers with group membership detected and the number of groups imported. You can click on either of these links to return the **ComputerGroup** records with this information.
53+
No longer supported
6054

6155
### Windows Server Update Service
62-
When you configure Azure Monitor to import WSUS group memberships, it analyzes the targeting group membership of any computers with the Log Analytics agent. If you are using client-side targeting, any computer that is connected to Azure Monitor and is part of any WSUS targeting groups has its group membership imported to Azure Monitor. If you are using server-side targeting, the Log Analytics agent should be installed on the WSUS server in order for the group membership information to be imported to Azure Monitor. This membership is continuously updated every 4 hours.
63-
64-
You configure Azure Monitor to import WSUS groups from the **Legacy computer groups** menu item in your Log Analytics workspace in the Azure portal. Select the **Windows Server Update Service** tab, and then **Import WSUS group memberships**. When groups have been imported, the menu lists the number of computers with group membership detected and the number of groups imported. You can click on either of these links to return the **ComputerGroup** records with this information.
56+
No longer supported
6557

6658
### Configuration Manager
67-
When you configure Azure Monitor to import Configuration Manager collection memberships, it creates a computer group for each collection. The collection membership information is retrieved every 3 hours to keep the computer groups current. Before you can import Configuration Manager collections, you must [connect Configuration Manager to Azure Monitor](collect-sccm.md).
68-
69-
You configure Azure Monitor to import WSUS groups from the **Legacy computer groups** menu item in your Log Analytics workspace in the Azure portal. Select the **System Center Configuration Manager** tab, and then **Import Configuration Manager collection memberships**. When collections have been imported, the menu lists the number of computers with group membership detected and the number of groups imported. You can click on either of these links to return the **ComputerGroup** records with this information.
59+
No longer supported
7060

7161
## Managing computer groups
72-
You can view computer groups that were created from a log query or the Log Search API from the **Legacy computer groups** menu item in your Log Analytics workspace in the Azure portal. Select the **Saved Groups** tab to view the list of groups.
73-
74-
Click the **x** in the **Remove** column to delete the computer group. Click the **View members** icon for a group to run the group's log search that returns its members. You can't modify a computer group but instead must delete and then recreate it with the modified settings.
62+
You can view computer groups that were created from a log query from the **Legacy computer groups** menu item in your Log Analytics workspace in the Azure portal. Select the **Saved Groups** tab to view the list of groups.
7563

76-
![Saved computer groups](media/computer-groups/configure-saved.png)
64+
Click the **Run query** icon for a group to run the group's log search that returns its members. Click the **Delete** icon to delete the computer group. You can't modify a computer group but instead must delete and then recreate it with the modified settings.
7765

66+
:::image type="content" source="media/computer-groups/configure-saved.png" alt-text="Screenshot of a Log Analytics resource in Azure with Legacy computer groups pane, Saved Groups tab, Run query icon, and Delete icon highlighted." lightbox="media/computer-groups/configure-saved.png":::
7867

7968
## Using a computer group in a log query
8069
You use a Computer group created from a log query in a query by treating its alias as a function, typically with the following syntax:
@@ -89,33 +78,5 @@ For example, you could use the following to return UpdateSummary records for onl
8978
UpdateSummary | where Computer in (mycomputergroup)
9079
```
9180

92-
Imported computer groups and their included computers are stored in the **ComputerGroup** table. For example, the following query would return a list of computers in the Domain Computers group from Active Directory.
93-
94-
```kusto
95-
ComputerGroup | where GroupSource == "ActiveDirectory" and Group == "Domain Computers" | distinct Computer
96-
```
97-
98-
The following query would return UpdateSummary records for only computers in Domain Computers.
99-
100-
```kusto
101-
let ADComputers = ComputerGroup | where GroupSource == "ActiveDirectory" and Group == "Domain Computers" | distinct Computer;
102-
UpdateSummary | where Computer in (ADComputers)
103-
```
104-
105-
## Computer group records
106-
A record is created in the Log Analytics workspace for each computer group membership created from Active Directory or WSUS. These records have a type of **ComputerGroup** and have the properties in the following table. Records are not created for computer groups based on log queries.
107-
108-
| Property | Description |
109-
|:--- |:--- |
110-
| `Type` |*ComputerGroup* |
111-
| `SourceSystem` |*SourceSystem* |
112-
| `Computer` |Name of the member computer. |
113-
| `Group` |Name of the group. |
114-
| `GroupFullName` |Full path to the group including the source and source name. |
115-
| `GroupSource` |Source that group was collected from. <br><br>ActiveDirectory<br>WSUS<br>WSUSClientTargeting |
116-
| `GroupSourceName` |Name of the source that the group was collected from. For Active Directory, this is the domain name. |
117-
| `ManagementGroupName` |Name of the management group for SCOM agents. For other agents, this is AOI-\<workspace ID\> |
118-
| `TimeGenerated` |Date and time the computer group was created or updated. |
119-
12081
## Next steps
12182
* Learn about [log queries](./log-query-overview.md) to analyze the data collected from data sources and solutions.
-7.27 KB
Loading

0 commit comments

Comments
 (0)