Created
September 28, 2014 06:23
-
-
Save andreaswasita/776a60eeb61b9f43a445 to your computer and use it in GitHub Desktop.
Set Azure VM Security Extension - Microsoft Anti Malware to existing Azure VM
This file contains 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
#Azure Cloud Service and Azure VM Name | |
$service= Read-Host -Prompt 'Azure Cloud Service:' | |
$name = Read-Host -Prompt 'Azure VM:' | |
# Get the Cloud Service and Azure VM | |
$vm = Get-AzureVM –ServiceName $service –Name $name | |
# Add Microsoft Antimalware Agent to the Azure VM | |
Set-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm.VM | |
# Update the Azure VM and 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