Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreaswasita/d9bc7f0ba1b557600ce5 to your computer and use it in GitHub Desktop.
Save andreaswasita/d9bc7f0ba1b557600ce5 to your computer and use it in GitHub Desktop.
$servicename = Read-Host -Prompt 'Azure Cloud Service:'
$name = Read-Host -Prompt 'Azure VM:'
# Get the VM
$vm = Get-AzureVM –ServiceName $servicename –Name $name
# Get Microsoft Antimalware Agent on Virtual Machine
Get-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm.VM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment