Share via

Is msgraph-sdk-powershell available in Azure?

Gal, Ofer 81 Reputation points
2021-08-05T16:50:57.337+00:00

I intend to use msgraph-sdk-powershell in Azure function.
Is it available like PnP.Powershell?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

Answer accepted by question author

MayankBargali-MSFT 71,016 Reputation points Moderator
2021-08-06T04:14:23.287+00:00

@Gal, Ofer Functions lets you leverage PowerShell gallery for managing dependencies. You need to update the below in host.json for dependencies management. In requirements.psd1 you need to mentioned the your module name. Searching with msgraph-sdk-powershell in poweshell gallery I found different module. As per your requirement you can add the module and if need with the version in your requirements.psd1

{  
  "managedDependency": {  
          "enabled": true  
       }  
}  

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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