Skip to content

Instantly share code, notes, and snippets.

@bentaylorwork
Created July 4, 2017 16:04
Show Gist options
  • Save bentaylorwork/4cfd37be75045b8565c4e9b4c8a251a4 to your computer and use it in GitHub Desktop.
Save bentaylorwork/4cfd37be75045b8565c4e9b4c8a251a4 to your computer and use it in GitHub Desktop.
Deploys the Microsoft IaaS Anti-malware VM extension to a previously deployed VM in Azure using an ARM template.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmName": {
"type": "string",
"metadata": {
"description": "Name of the VM"
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'),'/IaaSAntimalware')]",
"apiVersion": "2015-06-15",
"location": "[resourceGroup().location]",
"dependsOn": [],
"properties": {
"publisher": "Microsoft.Azure.Security",
"type": "IaaSAntimalware",
"typeHandlerVersion": "1.3",
"settings": {
"AntimalwareEnabled": "true",
"Exclusions": {
"Paths": "C:\\Users"
},
"RealtimeProtectionEnabled": "true",
"ScheduledScanSettings": {
"isEnabled": "true",
"scanType": "Quick",
"day": "7",
"time": "120"
}
},
"protectedSettings": null
}
}
],
"outputs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment