azure-functions-powershell-worker icon indicating copy to clipboard operation
azure-functions-powershell-worker copied to clipboard

Enable-ExperimentalFeature does not work on Azure

Open AnatoliB opened this issue 5 years ago • 1 comments

Enable-ExperimentalFeature fails with the "access denied" error. As a result, Azure Functions users cannot enable experimental PowerShell features.

Apparently, Enable-ExperimentalFeature needs write access to the $env:HOME directory, and this path is mounted as read-only (at least on Consumption). In order to fix this, we need to either make $env:HOME point to a writable location (such as D:\home\data) or allow passing a different location to the PowerShell SDK.

AnatoliB avatar Dec 28 '20 06:12 AnatoliB

Reach out to the PS team to see if we can make $env:HOME configurable.

Francisco-Gamino avatar Jun 11 '21 21:06 Francisco-Gamino