Hi,
I created a Azure function and now want to deploy the MSOnline PowerShell module, So I can connect to O365 and execute some PowerShell scripts. I have a automation platform where I am calling Azure functions to run some PowerShell stuffs which are not supported by Graph API's. I tried to open up my PowerShell console inside my functions and install nuget and it is not working.
PS D:\home\site\wwwroot>Install-Package nuget -force -scope CurrentUser Install-Package : No match was found for the specified search criteria and package name 'nuget'. Try Get-PackageSource to see all available registered package sources. At line:1 char:1 + Install-Package nuget -force -scope CurrentUser + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPacka ge:InstallPackage) [Install-Package], Exception + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.Pac kageManagement.Cmdlets.InstallPackage