简体   繁体   English

Azure VM日志和Azure存储

[英]Azure VM Logs and Azure Storage

I need an advise about Azure services. 我需要有关Azure服务的建议。 Suppose that I have a Linux VM in Azure with some application working there. 假设我在Azure中有一个Linux VM,并在其中运行了一些应用程序。 This application generates some log files. 该应用程序生成一些日志文件。 I'm interesting in uploading these log files to a directory in Azure Storage. 我将这些日志文件上传到Azure存储的目录中很有趣。 What is the best way to do it?. 最好的方法是什么? How about security?, would I do it without creating a public directory?. 安全性如何?不创建公共目录就可以吗?

there are several ways to deal with this use case. 有几种处理此用例的方法。 I'll give you the simplest one. 我给你最简单的一个。 Under your storage account, create a file share, through Files, once you do, there will be an option to connect on top left, this will provide you with the specific commands to run on your vm in order to attach this file share. 在您的存储帐户下,通过“文件”创建文件共享,完成后,将在左上角提供一个连接选项,这将为您提供在vm上运行的特定命令,以附加此文件共享。 once this is done, point out the log files to be stored to that drive. 完成此操作后,指出要存储到该驱动器的日志文件。 From a security standpoint, you will be using unique keys to access that specific file share to protect access to it. 从安全角度出发,您将使用唯一密钥来访问该特定文件共享,以保护对其的访问。 Step by step guide can be found here: https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-create-file-share 可在此处找到分步指南: https : //docs.microsoft.com/zh-cn/azure/storage/files/storage-how-to-create-file-share

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

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