PSResourceGet
PSResourceGet copied to clipboard
Make the temp folder for Save-Module configurable
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest released version
- [X] Search the existing issues.
Steps to reproduce
In Azure Functions, we use the Save-Module cmdlet to download the function app dependencies. At times, the modules to be installed are very large and the operation fails because there is not enough space in the temp directory. Having the ability to set an alternative to the temp directory via an environment variable could help us in this scenario. For reference, please see https://github.com/Azure/azure-functions-powershell-worker/issues/771.
Expected behavior
N/A
Actual behavior
N/A
Error details
N/A
Environment data
N/A
Visuals
No response
/cc @anatolib @stefanushinardi
Thanks for opening is issue, we are thinking through how we could light up this experience for you (and other users) without introducing complexity to the interface for other users
After discussing this we decided to make this a parameter on Install-PSResource, Save-PSResource, Update-PSResource the parameter can be called -TemporaryPath