Move logs from VM to azure blob storage

Muhammad Zeeshan 241 Reputation points
2022-01-28T15:40:53.163+00:00

Hi,

In my infrastructure all the logs generated by a VM and the application hosted on it are being stored on the VM itself.

I want to move them from the VM and onto Azure Storage account.

How can this be achieved ?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,944 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 35,636 Reputation points Microsoft Employee
    2022-01-28T19:32:31.393+00:00

    @Muhammad Zeeshan
    I understand that you want to move logs from your VM to blob storage. The easiest way to move these files is to use Storage Explorer. Storage Explorer is a GUI which will allow you to easily upload your files to the blob container of your choice. If you wish to accomplish this via CLI you can use AzCopy. Here is a nice guide on using AzCopy with blob storage to upload from a VM.

    Hope this helps! Let us know if you have further questions or run into any issues.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Muhammad Zeeshan 241 Reputation points
    2022-01-31T14:57:15.503+00:00

    Thanks mate. It worked !!

    But this process is all manual . Anyway to automate this process for all VMs running in my environment both linux and windows.

    I have around 10 VMs.