Where can we find the logs for userData on a Windows VM in Azure?

Jiean Yang 0 Reputation points


I'm trying to run a script as userData input when create a VM, it works on Linux (there're logs on the machine) but not works on Windows. So I need to find the logs of userData to debug the script on Window, but I can't find any related doc about it except the API.

Where can we find the logs for userData on a Windows VM in Azure?

  • Specifically not referring to custom data.
  • Want to know the folder location as we prefer not to rely on the API. I can find the result of userData on Linux Vm but not work on Windows, the doc doesn't mention it, where's the location of logs userData, how can find the userData after login in VM.
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,409 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,046 Reputation points

    Hello there,

    You can access the activity log from most menus in the Azure portal. The menu that you open it from determines its initial filter. If you open it from the Monitor menu, the only filter is on the subscription. If you open it from a resource's menu, the filter is set to that resource.

    More information here


    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments