Solved
Forum Discussion
Anonymous
2 years agoYou could modify the AppliesTo of the cloud datasources to exclude certain VMs.
For example (in Azure, but similar for other cloud providers): MicrosoftAzure_VMBackupStatus has the following AppliesTo:
hasCategory("Azure/VirtualMachine") && system.azure.hasBackupProtectedItemResource == "true"
You could add something that looks for a property and if that property is present, the VM is excluded from applying to that DS:
hasCategory("Azure/VirtualMachine") && system.azure.hasBackupProtectedItemResource == "true" && noCloudMetrics
Then you’d just add a property called “noCloudMetrics” to any VMs you want that DS not to apply to. It doesn’t matter what the value is. This expression just looks for that property to exist.