-
name: Install Azure vm extension IaaSAntiMalware
azure_rm_virtualmachine_extension:
name: IaasAntiMalware
resource_group: '{{ resource_group }}'
virtual_machine_name: '{{ vmName }}'
publisher: Microsoft.Azure.Security
virtual_machine_extension_type: IaasAntiMalware
type_handler_version: 1.5
settings: |
{
"AntimalwareEnabled": true,
"RealtimeProtectionEnabled": true,
"ScheduledScanSettings": {
"isEnabled": "true",
"day": "1",
"time": "120",
"scanType": "Quick"
},
"Exclusions": {
"Extensions": "",
"Paths": "",
"Processes": ""
}
}
auto_upgrade_minor_version: true