Importing Modules

Is it possible to load modules using import-module in an UA script?
UA is running in a Docker container. The /data folder is mapped, but I don’t see any link between the PSModulePath and the mapped folder. Do I need to explicitly add a folder the PSModulePath environment variable?

You should be able to import any PS module into UA. Just to be clear, you are using the PowerShell Universal 1.3.2 container instance?

You’ll need to add the data folder to PSModulePath manually. I’ll put something in our backlog to allow for customization of the PSModulePath directly in PSU.

Perfect. Thanks.
Yes, PSU 1.3.2 in a Docker container. I just wanted to make sure I wasn’t missing something!

Thanks Again!

1 Like