Hi,
You can use sample code below to get list of members of local Administrators group on windows VM. Please note it takes some time for the extension to run the command on the VM and return the results, so be patient.
az vm run-command invoke -g MyResourceGroup -n MyVM --command-id RunPowerShellScript --scripts "Get-LocalGroupMember -Group 'Administrators'"
Thanks.
-TP