correct Azure Function runtime version and Powershell version compatibility

Daniel Njoku 61 Reputation points
2022-09-20T20:17:00.767+00:00

Which PowerShell version is compatible with Azure function runtime version, because current runtime version of function does not work with PowerShell library called MSOnline

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Windows for business Windows Server User experience PowerShell
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2022-09-22T18:16:35.79+00:00

    @Daniel Njoku Thank you for reaching out to Microsoft Q&A.

    To your initial question, refer docs: Languages for runtime version vs compatible PS version
    243992-image.png

    Regarding MSOnline, it is older V1 module for Azure Active Directory and there is V2 module AzureAD which is also planned for deprecation. I would recommend you try new Microsoft Graph PowerShell for interacting with Azure AD.

    If you have a specific need to use these older modules, refer this comment and try the workaround (which previously worked for MSOnline module too). Also, check other thread to validate if any module is compatible on Azure Functions with PowerShell 7.

    I hope this answers your question and feel free to add if you have any questions. I would be happy to assist you. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.