简体   繁体   English

使用Symantec的Azure PaaS Malwre保护

[英]Azure PaaS Malwre protection using Symantec

I want to enable Malware protection/Virus scanning in my PaaS. 我想在我的PaaS中启用恶意软件保护/病毒扫描。 For example i have a Web Api for file upload and store the files to Blob staorage. 例如,我有一个用于文件上传的Web Api,并将文件存储到Blob存储空间中。 I want to scan the files before store it using symantec. 我想先扫描文件,然后再使用symantec进行存储。 I dint find any article or code for the same. 我没找到相同的任何文章或代码。

Thanks in advance, Subbiah K 预先感谢Subbiah K

Firstable you need to resolve the licensing with Symantec. 首先,您需要通过Symantec解决许可问题。 Once that is resolved you must configure some startup Tasks for your compute instance. 解决该问题后,您必须为您的计算实例配置一些启动任务。

This Tasks are intended to run every time the application is started including when the package is deployed and when the instance is destroyed-recreated by azure maintenance or error conditions. 任务旨在在每次启动应用程序时运行,包括何时部署软件包以及何时由于天蓝色的维护或错误情况而破坏实例(重新创建实例)。

The startup Task purpose should be to copy / install symantec products to be accessible by the cloud service. 启动任务的目的应该是复制/安装symantec产品,以便云服务可以对其进行访问。 As I previously say this Task run everytime the package is deployed including instance reconstruction by azure. 正如我之前所说的,此Task每次部署软件包时都会运行,包括通过Azure进行实例重建。

Once the symantec product is installed you only need to run the scan each X time, probably this process should be called from a Worker Role. 一旦安装了symantec产品,您只需要每X次运行一次扫描,可能应该从辅助角色调用此过程。

Create the Task is quite easy , you need to include something like this in the service definition file 创建任务非常简单,您需要在服务定义文件中包含类似的内容

<Startup>
    <Task commandLine="Startup.cmd" executionContext="limited" taskType="simple" >
        <Environment>
            <Variable name="MyVersionNumber" value="1.0.0.0" />
        </Environment>
    </Task>
</Startup>

the cmd file is a windows batch file created to call the Symantec product installer. cmd文件是Windows批处理文件,创建该文件以调用Symantec产品安装程序。 This Will ensure that the product is installed on each instance even after instance recreation or package deployment. 这将确保即使在实例重新创建或程序包部署之后,也可以在每个实例上安装该产品。

This link goes to Azure documentation with more detailed information 此链接转到带有更多详细信息的Azure文档

How to configure and run startup tasks for a cloud service 如何配置和运行云服务的启动任务

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

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