Azure / Azure/azure-functions-host

Powershell runtime newer than 3.8.2 fails to import modules

Open
#8,667 1 comment 0 reactions 0 assignees View on GitHub
Needs: Triage (Functions)
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

#### Is your question related to a specific version? If so, please specify:

Powershell runtime >3.8.2

#### What language does your question apply to? (e.g. C#, JavaScript, Java, All)

Powershell

#### Question

Last month a new release of the Powershell function runtime broke the functionality to import Powershell modules. This is explained in these two threads on the Microsoft forums:

* https://docs.microsoft.com/en-us/answers/questions/919927/powershell-function-app-fails-to-import-module.html
* https://docs.microsoft.com/en-us/answers/questions/920865/azure-function-import-module-error.html

The suggested (temporary) solution was to pin the runtime version to 3.8.2, while a fix would be prepared according to the support moderator. The latest 3.x versions still don't solve this problem howsever. Does anyone know when we can expect this to be fixed permanently?

Thanks for your feedback!

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or entry points are identified. Start by reproducing the module-import failure in a PowerShell Azure Function runtime newer than 3.8.2, compare it with the temporary 3.8.2 pin, and review the two linked Microsoft forum threads; done means a permanent fix is verified in a newer 3.x runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.