Search This Blog

Monday, August 10, 2015

Install Microsoft AntiMalware on Existing Azure VM

You may have deploy an Azure VM but forget to install antivirus security extension during provisioning. If yes, then you may refer to below step on how we deploy Microsoft Antimalware f9or FREE.

[ Requirement]

Windows guest operating system from Win 2008 R2 SP1 or higher

Install Window Azure VM Agent into VM. Download from here.

[ Configuration ]

Use Windows Azure Powershell to execute below command

$servicename = "MS4U-VM1"
$name = "MS4U-VM1"

$vm3 = Get-AzureVM –serviceName $servicename –Name $name
$vm3.VM.ProvisionGuestAgent = $TRUE
Update-AzureVM –Name $name –VM $vm3.VM –ServiceName $servicename

# Get the VM
$vm3 = Get-AzureVM –ServiceName $servicename –Name $name

# Add Microsoft Antimalware Agent to the Virtual Machine
Set-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm3.VM

# Update the VM which will install the Antimalware Agent
Update-AzureVM -Name $servicename -ServiceName $name -VM $vm3.VM


Credit to