Differentiate Azure VMs and Azure VM Scale Set (VMSS) Instances in Cloudaware CMDB
This page explains how to differentiate Azure VMs and Azure VM Scale Set instances in Cloudaware CMDB.
Overview
Azure Virtual Machine Scale Sets (VMSS) manage groups of load-balanced VMs for scalable, highly available workloads. With flexible orchestration, standard Azure VMs can be added to a scale set, and Microsoft Azure reports them as both regular VMs and VMSS instances. This can create duplicate instance records in the CMDB, visible in the Related CIs tab on a record and in reports.
%20-%20Related%20CIs%20(duplicates).png?inst-v=1ff05145-a06a-4326-a942-58fc403dd5cb)
How to tell which object you are looking at
Use these Cloudaware fields on the Azure VM record:
VM Scale Set
VM Scale Set ID
%20-%20Fields%20on%20a%20record%20to%20check.png?inst-v=1ff05145-a06a-4326-a942-58fc403dd5cb)
Decision rule
VM Scale Set | VM Scale Set ID | What it means | Recommended reporting treatment |
|---|---|---|---|
empty | empty | The VM was created as a standalone Azure VM (even if later associated with a scale set) | Treat as an Azure VM record |
populated | populated | The VM is represented as an Azure VM Scale Set instance (created/managed in the context of a scale set) | Treat as a VM Scale Set instance record |
If you see VM Scale Set populated but VM Scale Set ID empty (or vice versa), treat it as an inconsistency and validate ingestion timing and object refresh.
Reporting filters (examples)
To count only VM Scale Set instances:
Filter: VM Scale Set ID
not equals toblank
To count only standalone VMs:
Filter: VM Scale Set ID
equalsblank
Troubleshooting
I still see duplicates in reports
Confirm your report/list view filters explicitly include or exclude records based on VM Scale Set ID.
If you are joining datasets (e.g., VM Scale Set ↔ VM), ensure you are not counting both populations in the same aggregation without classification.
Fields are not populated as expected
If VM Scale Set and/or VM Scale Set ID are unexpectedly empty or partially populated, re-check after the next data refresh/ingestion cycle.
Validate you are inspecting the correct object type (Azure VM vs. VM Scale Set-related representation) and that the report/list view is using the intended source object.
Related
To learn how Cloudaware derives the cost per Azure Virtual Machine Scale Set (VMSS) instance in reports, see this guide.