1

I'd like to configure IIS (8.5) on an Azure VM to log to an Azure Files Share.

I've proved access to the share by remoting onto the VM and persisting credentials using cmdkey and then navigating successfully via the UNC path in Windows Explorer.

When I configure the IIS logging directory to point to the same UNC path I see this unable to create log file error in the event log upon restarting IIS and browsing to a hosted site.

There doesn't seem to be a way to provide IIS with the credentials to use when it attempts to log to the Azure Files Share. Whilst exploring options I used the PSExec tool to persist the share credentials for the system account but that did not resolve the issue.

Any help much appreciated.

Mark York
  • 11
  • 1

1 Answers1

0

IIS uses the local computers credentials (\ISSCOMPUTER$), not the users (or service principals) one. Just ad the (AD) account of the machine to your target.

Maybe it now comes to another common problem – where the web server is in another (or no) domain, and the UNC share is in somewhere else. You can still configure it by setting up the remote share as a Null Session share. You can set up a Null Session by following the steps in this Technet article on how to create Null-Sessions.

bjoster
  • 4,805
  • 5
  • 25
  • 33