Hey all,
I have a C++ service running on a PaaS role in Azure. The service is configured to run as Local System. I'm trying to write events to the Windows Security Event Log and I'm running into difficulty.
The API I'm using is this one: AuthzReportSecurityEvent ( http://msdn.microsoft.com/en-us/library/windows/desktop/aa376317(v=vs.85).aspx )
I do follow the steps to install and register the event source. The code works as expected on my development machine, and the log entries show up in Event Viewer, in the Security log.
However, the entries do not show up in Event Viewer on the Azure VM. Stranger still, there is no indication why the call fails, or even that it fails at all--it returns success. I haven't found anything in the event log indicating that my application had tried to log an event.
What am I missing here? Is there some settings to configure in the csdef/cscfg for the role?
Thanks,
Brandon Waterloo