01 Run account list command (Windows/macOS/Linux) using custom query filters to list the IDs of the subscriptions available in your Azure account:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
az account list
--query '[*].id'
02 The command output should return the requested subscription identifiers (IDs):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
[
"abcdabcd-1234-abcd-1234-abcdabcdabcd",
"abcd1234-abcd-1234-abcd-abcd1234abcd",
]
03 Run vmss list command (Windows/macOS/Linux) using custom query filters to list the name and the associated resource group of each virtual machine scale set provisioned in the selected Azure subscription:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
az vmss list
--subscription abcdabcd-1234-abcd-1234-abcdabcdabcd
--output table
--query '[*].{name:name, resourceGroup:resourceGroup}'
04 The command output should return the requested virtual machine scale set identifiers:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
Name ResourceGroup
--------------------- ------------------------------
cc-project5-scale-set cloud-shell-storage-westeurope
cc-frontend-scale-set cloud-shell-storage-westeurope
05 Run vmss show command (Windows/macOS/Linux) using the name of the virtual machine scale set that you want to examine as identifier parameter and custom query filters, to list the name of each virtual machine extension installed for the selected scale set:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
az vmss show
--subscription abcdabcd-1234-abcd-1234-abcdabcdabcd
--name cc-project5-scale-set
--resource-group cloud-shell-storage-westeurope
--query 'virtualMachineProfile.extensionProfile.extensions[*].name'
06 The command output should return the requested VM extension name(s):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
[
"AzureNetworkWatcherExtension",
"CustomScript"
]
Check the VM extension names list returned by the
vmss show command output. If the list does not contain the Application Health extension name, i.e.
"ApplicationHealthLinux" (when the extension is enabled programmatically) or
"healthRepairExtension" (when the extension is enabled using Azure Portal), the application health monitoring (powered by Application Health extension) is not enabled for the selected Microsoft Azure virtual machine scale set.
07 Repeat step no. 5 and 6 for each Azure virtual machine scale set deployed in the selected subscription.
08 Repeat steps no. 3 – 7 for each subscription created in your Microsoft Azure cloud account.