Skip to content

Instantly share code, notes, and snippets.

@andreaswasita
Created August 31, 2014 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaswasita/974272eba92eb505c220 to your computer and use it in GitHub Desktop.
Save andreaswasita/974272eba92eb505c220 to your computer and use it in GitHub Desktop.
$servicename = "AzureVMAntiMalware"
$name = "MyAzureVM01"
# Get Azure VM
$vm = Get-AzureVM –ServiceName $servicename –Name $name
# Get Microsoft Antimalware Agent Azure Virtual Machine Status
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