Today, we got a strange issue/error message while trying to deploy a few new Logic App Standard workflows from Visual Studio Code for a client. When I went to the Azure Portal to check if everything was good with the resource, I saw the following error message on the Overview page:
Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. System.Private.CoreLib: Could not find a part of the path ‘C:\home\site\wwwroot’
Cause
This issue will typically occur when you configure your Logic App Standard to use a VNET, and of course, you enabled the network restriction on the associated storage account and add that VNET.
And the cause most likely is because you forgot to add to the Application settings in the Logic App Standard the following setting:
- WEBSITE_CONTENTOVERVNET—This setting will enable the Logic App resource to access website content over VNET traffic, i.e., on SE or PEs.
Solution
To access your logic app workflow data over the virtual network, follow these steps:
- On the logic app resource menu, under Settings, select Environment variables.
- On the App settings tab, add the WEBSITE_CONTENTOVERVNET app setting, if none exist, and set the value to 1.
- Don’t forget to Apply those changes, and it never hurts to restart your Logic App Standard instance.
I hope you find this helpful! If you liked the content or found it useful and want to help me write more, you can buy (or help me buy) my son a Star Wars Lego!