简体   繁体   English

无法为 Azure 云服务(经典)启用反恶意软件

[英]Unable to enable AntiMalware for Azure Cloud Service (Classic)

We are trying to configure AntiMalware extensions for classic Azure Cloud Services by changing the service definition file (csdef).我们正在尝试通过更改服务定义文件 (csdef) 为经典 Azure 云服务配置 AntiMalware 扩展。 We know we can do this via powershell/portal, but we want this to be part of the definition so that re-deployments don't wipe out the config each time.我们知道我们可以通过 powershell/portal 做到这一点,但我们希望这成为定义的一部分,这样重新部署就不会每次都清除配置。

We've added the import entry:我们添加了导入条目:

<Import moduleName="AntiMalware" />

As well as the settings definitions:以及设置定义:

  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ServiceLocation" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.EnableAntimalware" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.EnableRealtimeProtection" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.EnableWeeklyScheduledScans" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.DayForWeeklyScheduledScans" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.TimeForWeeklyScheduledScans" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ExcludedExtensions" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ExcludedPaths" />
  <Setting name="Microsoft.WindowsAzure.Plugins.Antimalware.ExcludedProcesses" />

But when I try to build/package the cloud service using Visual Studio 2019 v16.8.2 and I get the following error:但是当我尝试使用 Visual Studio 2019 v16.8.2 构建/打包云服务时,我收到以下错误:

Unable to import module AntiMalware.无法导入模块 AntiMalware。 No manifest was found.未找到清单。

There seems to be virtually no documentation on this outside of very out dated blog posts.除了非常过时的博客文章之外,似乎几乎没有关于此的文档。 I'm wondering if the name of this module changed?我想知道这个模块的名称是否改变了?

I agree that you provide the method in the link, use the definition and use the ps1 file to install AntiMalware .我同意您在链接中提供方法,使用定义并使用 ps1 文件安装AntiMalware

Searching a lot of documents and materials, your needs should be achievable, and there are detailed steps in the 2012 official documents.查了很多文档资料,你的需求应该是可以实现的,2012官方文档里面有详细的步骤。

Microsoft Endpoint Protection for Windows Azure Customer Technology Preview Now Available For Free Download 适用于 Windows Azure 客户技术预览版的 Microsoft 端点保护现已提供免费下载

There are also blogs explaining about this .csdef file, using <Import moduleName="AntiMalware" /> .还有一些博客解释了这个.csdef文件,使用<Import moduleName="AntiMalware" />

How to Protect Against Malware on Windows Azure如何防止 Windows Azure 上的恶意软件

Suggestions, raise a support ticket on the portal , and seek official final advice.建议, 在门户上提出支持票,并寻求官方最终建议。 Because this document is too old, I did not try it.因为这个文档太旧了,我没有尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM