Hello, @Lior Tomer !
How do I add an antivirus extension like Symantec or ESET to Azure Cloud Services (extended support)?
You can enable and configure Microsoft Antimalware for Azure Cloud Services using PowerShell:
- Windows Server 2012 R2 and older: Microsoft Antimalware is installed in a disabled state in the Cloud Services platform running Windows Server 2012 R2 and older which requires an action by an Azure application to enable it.
- Windows Server 2016 and above: Windows Defender is enabled by default. These cmdlets can be used for configuring Antimalware.
# Create Antimalware extension object, where file is the AntimalwareSettings
$xmlconfig = [IO.File]::ReadAllText("C:\path\to\file.xml")
$extension = New-AzCloudServiceExtensionObject -Name "AntimalwareExtension" -Type "PaaSAntimalware" -Publisher "Microsoft.Azure.Security" -Setting $xmlconfig -TypeHandlerVersion "1.5" -AutoUpgradeMinorVersion $true
# Get existing Cloud Service
$cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS"
# Add Antimalaware extension to existing Cloud Service extension object
$cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension + $extension
# Update Cloud Service
$cloudService | Update-AzCloudService
Additional reading:
- Extensions for Cloud Services (extended support)
- Microsoft Antimalware for Azure Cloud Services and Virtual Machines
- Enable and configure Microsoft Antimalware for Azure Resource Manager VMs
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!