Created
June 12, 2023 13:24
-
-
Save johnybradshaw/e6dd1e09ae218bdb6d6a13692a1e2aa4 to your computer and use it in GitHub Desktop.
An Azure KQL query to discover all VMs that have either Java and/or Oracle installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConfigurationData | |
| where ConfigDataType == "Software" | |
| where SoftwareName contains "Java" or SoftwareName contains "Oracle" | |
| summarize SoftwareInstalled = strcat(iif(countif(SoftwareName contains "Java") > 0, "Java, ", ""), iif(countif(SoftwareName contains "Oracle") > 0, "Oracle", "")) by Computer | |
| order by SoftwareInstalled desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment