Machine Onboarded Azure Arc
Machine Onboarded
Query
AzureActivity
| where OperationNameValue =~ "MICROSOFT.HYBRIDCOMPUTE/MACHINES/WRITE"
| where ActivityStatusValue =~ "Success"
| extend HostName = tostring(parse_json(Properties).resource)
| project-reorder TimeGenerated, Caller, HostName, ResourceGroupAbout this query
Machine Onboarded Azure Arc
Query Information
Description
Lists the onboarded machines to Azure Arc. The HostName is the hostname that is used within Azure and Defender For Endpoint, this may differ from the actual hostname of the local system.
Sentinel
Explanation
This KQL query is designed to list machines that have been successfully onboarded to Azure Arc. Here's a simple breakdown of what the query does:
-
Data Source: The query pulls data from the
AzureActivitytable, which logs various activities and operations within Azure. -
Filter Operations:
- It filters the data to include only those operations where the
OperationNameValueis "MICROSOFT.HYBRIDCOMPUTE/MACHINES/WRITE". This operation indicates that a machine has been written (or onboarded) to Azure Arc. - It further filters to include only those activities where the
ActivityStatusValueis "Success", ensuring that only successful onboardings are considered.
- It filters the data to include only those operations where the
-
Extract HostName:
- The query extracts the
HostNamefrom thePropertiesfield by parsing it as JSON and converting it to a string. ThisHostNameis the name used within Azure and Defender for Endpoint, which might differ from the local system's actual hostname.
- The query extracts the
-
Select and Order Columns:
- Finally, it selects and orders the columns to display:
TimeGenerated(when the activity was logged),Caller(who initiated the operation),HostName(the name of the onboarded machine), andResourceGroup(the Azure resource group associated with the machine).
- Finally, it selects and orders the columns to display:
In summary, this query provides a list of machines successfully onboarded to Azure Arc, along with details about when the onboarding occurred, who initiated it, the machine's Azure hostname, and the associated resource group.
Details

Bert-Jan Pals
Released: January 4, 2025
Tables
Keywords
Operators