I've got a .NET core application that run fine from a command prompt that creates SharePoint Sites and adds content types from templates. When I schedule it to run via Windows Scheduled Tasks with the same account it fails with the following error:
Error applying client template: The Provisioning Template URI "MyTemplate.xml" is not valid.
The "client template" is the site collection template
What would cause it to not run properly when scheduled?