Which servers have a particular application installed? Where are certificates approaching expiration? Which accounts are used to run Windows services? Answering these questions across Azure and on-premises environments starts with knowing what's inside your machines, not just where they're running.
Today, we're introducing Machine Inventory in Azure Machine Configuration (preview). You can explore collected inventory in the Azure portal and query it across machines with Azure Resource Graph, bringing guest-level visibility into the Azure tools you already use.
The goal is simple: understand what you have, then use that information to plan your next action.
What's new?
With Machine Inventory, you can review software, services, certificates, accounts, and server roles collected from supported machines. Start with a category in the portal, or write a query to answer a specific question across your selected Azure scope.
Inventory availability and category coverage depend on the operating system and collection path. The inventory experience is currently read-only: reviewing records doesn't change the machine's configuration.
|
Supported inventory resource |
Available for |
Azure Resource Graph resource type |
|
Applications |
Windows |
microsoft.guestconfiguration/applications |
|
Services |
Windows |
microsoft.guestconfiguration/services |
|
Users |
Windows |
microsoft.guestconfiguration/users |
|
Groups |
Windows |
microsoft.guestconfiguration/groups |
|
Certificates |
Windows |
microsoft.guestconfiguration/certificates |
|
Windows Server roles |
Windows |
microsoft.guestconfiguration/windowsroles |
|
Daemons |
Linux |
microsoft.guestconfiguration/daemons |
|
Software |
Linux |
microsoft.guestconfiguration/softwares |
|
Device-collection membership |
Configuration Manager Connected Inventory |
microsoft.guestconfiguration/devicecollections |
A central place to explore your inventory
In the Azure portal, open Machine Configuration and select Machine Inventory (preview). Choose the subscriptions and resource groups you want to review, then explore the available inventory categories.
The overview includes tiles for applications, certificates, services, users, groups, and Windows roles. Select See all on a tile to review the records and their associated machines. Filtering and grouping help you narrow the results to the systems you want to investigate.
Choose the collection path that fits your environment
Azure VMs and Arc-enabled servers
For Windows and Linux Azure VMs and Azure Arc-enabled servers, use built-in Azure policies to enable inventory collection through Machine Configuration.
Assign the applicable prerequisites, then select the inventory policy for your machines' operating systems:
- [Preview]: Windows machines should have Azure inventory enabled
- [Preview]: Linux machines should have Azure inventory enabled
For Azure VMs, first assign the Deploy prerequisites to enable Guest Configuration policies on virtual machines initiative. For Arc-enabled servers, set the IncludeArcMachines parameter to "true" where offered.
Follow the enablement guide for prerequisites and assignment steps.
Servers managed through Configuration Manager
Already collecting inventory with Microsoft Configuration Manager? Connected Inventory provides another path to bring that information into Azure.
Select device collections in the Configuration Manager console and publish their existing inventory through the configured Azure Arc connector. This path creates read-only Azure representations of the selected servers without installing agents on each managed server.
You can review synchronized devices in Azure and query device-collection membership with Azure Resource Graph. Connected Inventory refreshes daily, and inventory can take up to 24 hours to appear after enablement.
See the Connected Inventory guide for setup requirements and steps for setup requirements and steps.
Turn inventory into answers with Azure Resource Graph
The portal is a starting point. Azure Resource Graph lets you ask more targeted questions across the machines in your query scope.
For example, find Windows certificates that have expired or will expire within the next 30 days:
guestconfigurationresources
| where type =~ 'microsoft.guestconfiguration/certificates'
| extend expirationDate = todatetime(properties.notAfter)
| where expirationDate <= now() + 30d
| extend machineResourceId = tostring(split(tolower(id), '/providers/microsoft.guestconfiguration/')[0])
| project machineResourceId, certificate = name,
subject = tostring(properties.subject),
issuer = tostring(properties.issuer),
expirationDate,
keySize = toint(properties.keySize),
resourceGroup, subscriptionId
| order by expirationDate asc
Run this query in Resource Graph Explorer after selecting the subscriptions you want to investigate. The results include the associated machine resource ID, helping you distinguish certificates with the same name on different machines.
You can also query application versions, service accounts, group membership, and server roles. The query guide includes examples you can adapt to your environment.
Inventory reflects collected data, not a live inspection. Check your query scope, permissions, and collection status when interpreting missing or unexpected results.
Get started
Start with a set of machines you want to understand better. Enable machine inventory for Azure VMs and Arc-enabled servers, or connect your Configuration Manager inventory. Then open the portal experience and try a query against your collected records.
Read the machine inventory overview to learn more today!