Created
August 31, 2014 12:43
-
-
Save andreaswasita/71eb3894abf4379b3b7e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$service= "AzureVMAntiMalware" | |
$name = "MyAzureVM01" | |
# Get the Azure VM | |
$vm = Get-AzureVM –ServiceName $service –Name $name | |
# Add Microsoft Antimalware Agent to Azure VM | |
Set-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm.VM | |
# Update the VM which will install the Antimalware Agent | |
Update-AzureVM -Name $name -ServiceName $service -VM $vm.VM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment