Does monitoring application logs get flushed during scale down event of Azure VMSS?

Sreekara Yachamaneni 40 Reputation points Microsoft Employee
2023-11-01T19:08:13.6533333+00:00

We are working on auto-scaling our VMSS. One concern is that will the local logs from service application and monitoring application be flushed to Geneva by SF before shutting down the VM/after closing the application?

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
253 questions
{count} votes

Accepted answer
  1. vipullag-MSFT 25,616 Reputation points
    2023-11-02T03:53:16.73+00:00

    Hello Sreekara Yachamaneni

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    When a VM is scaled down in Azure VMSS, the VM is deallocated and the local logs from the service application and monitoring application are lost. This is because the VM is no longer running and the logs are not persisted to a storage account or other location.

    If you are using Azure Service Fabric to manage your VMSS, you can configure your application to use Azure Diagnostics to collect and store logs in Azure Storage. This will allow you to retain your logs even if the VM is deallocated or deleted.

    You can also use Azure Monitor to collect and analyze logs from your VMSS. Azure Monitor can collect logs from multiple sources, including Azure Diagnostics, and store them in a central location for analysis and reporting.

    In summary, if you want to retain your logs when scaling down your VMSS, you should configure your application to use Azure Diagnostics or Azure Monitor to collect and store your logs in a central location.

    Hope that helps.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful