Giter VIP home page Giter VIP logo

Comments (14)

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024 2

I can try to repro this within the hour

from azure-functions-powershell-worker.

cmatskas avatar cmatskas commented on May 24, 2024 1

Thanks @tylerl0706 I'll take it for a spin tomorrow and report back. I appreciate you looking into this today.

from azure-functions-powershell-worker.

cmatskas avatar cmatskas commented on May 24, 2024 1

from azure-functions-powershell-worker.

cmatskas avatar cmatskas commented on May 24, 2024

@tylerl0706 any chance you could have a look at this as well?

from azure-functions-powershell-worker.

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024

Just to confirm, you are copying the contents of:

/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/bin/Debug/netcoreapp2.1/publish/

Into

/usr/local/Cellar/azure-functions-core-tools/<version>/workers/powershell/

Note: you'll need to specify the correct version of what you have installed.

Is that correct?

from azure-functions-powershell-worker.

cmatskas avatar cmatskas commented on May 24, 2024

I'm copying the following dependencies from azure-functions-powershell-worker/src/bin/debug/netcoreapp2.1/publish into usr/local/Cellar/azure-functions-core-tools/2.0.3/workers/powershell

Source Directory

Debug/netcoreapp2.1/publish  dev ✗                                                                                   9d ⚑  
▶ ls
CommandLine.dll                                               System.Net.Http.WinHttpHandler.dll
Google.Protobuf.dll                                           System.Runtime.Caching.dll
Grpc.Core.dll                                                 System.Runtime.CompilerServices.Unsafe.dll
Markdig.dll                                                   System.Security.Cryptography.Pkcs.dll
Microsoft.ApplicationInsights.dll                             System.Security.Cryptography.ProtectedData.dll
Microsoft.Azure.Functions.PowerShellWorker.deps.json          System.Security.Cryptography.Xml.dll
Microsoft.Azure.Functions.PowerShellWorker.dll                System.Security.Permissions.dll
Microsoft.Azure.Functions.PowerShellWorker.pdb                System.ServiceModel.Duplex.dll
Microsoft.Azure.Functions.PowerShellWorker.runtimeconfig.json System.ServiceModel.Http.dll
Microsoft.Azure.Functions.PowerShellWorker.xml                System.ServiceModel.NetTcp.dll
Microsoft.CodeAnalysis.CSharp.dll                             System.ServiceModel.Primitives.dll
Microsoft.CodeAnalysis.dll                                    System.ServiceModel.Security.dll
Microsoft.Win32.Registry.AccessControl.dll                    System.ServiceModel.Syndication.dll
Microsoft.Win32.SystemEvents.dll                              System.ServiceModel.dll
Modules                                                       System.ServiceProcess.ServiceController.dll
NJsonSchema.dll                                               System.Text.Encoding.CodePages.dll
Newtonsoft.Json.dll                                           System.Text.Encodings.Web.dll
System.CodeDom.dll                                            System.Threading.AccessControl.dll
System.ComponentModel.Composition.dll                         cs
System.Configuration.ConfigurationManager.dll                 de
System.Data.DataSetExtensions.dll                             es
System.Data.Odbc.dll                                          fr
System.Data.SqlClient.dll                                     it
System.Diagnostics.EventLog.dll                               ja
System.Diagnostics.PerformanceCounter.dll                     ko
System.DirectoryServices.AccountManagement.dll                pl
System.DirectoryServices.Protocols.dll                        pt-BR
System.DirectoryServices.dll                                  ru
System.Drawing.Common.dll                                     runtimes
System.IO.Packaging.dll                                       tr
System.IO.Ports.dll                                           worker.config.json
System.Interactive.Async.dll                                  zh-Hans
System.Management.dll                                         zh-Hant

Destination Directory

2.0.3/workers/powershell                                                                                                   
▶ ls
CommandLine.dll                                               System.Net.Http.WinHttpHandler.dll
Google.Protobuf.dll                                           System.Runtime.Caching.dll
Grpc.Core.dll                                                 System.Runtime.CompilerServices.Unsafe.dll
Markdig.dll                                                   System.Security.Cryptography.Pkcs.dll
Microsoft.ApplicationInsights.dll                             System.Security.Cryptography.ProtectedData.dll
Microsoft.Azure.Functions.PowerShellWorker.deps.json          System.Security.Cryptography.Xml.dll
Microsoft.Azure.Functions.PowerShellWorker.dll                System.Security.Permissions.dll
Microsoft.Azure.Functions.PowerShellWorker.pdb                System.ServiceModel.Duplex.dll
Microsoft.Azure.Functions.PowerShellWorker.runtimeconfig.json System.ServiceModel.Http.dll
Microsoft.Azure.Functions.PowerShellWorker.xml                System.ServiceModel.NetTcp.dll
Microsoft.CodeAnalysis.CSharp.dll                             System.ServiceModel.Primitives.dll
Microsoft.CodeAnalysis.dll                                    System.ServiceModel.Security.dll
Microsoft.Win32.Registry.AccessControl.dll                    System.ServiceModel.Syndication.dll
Microsoft.Win32.SystemEvents.dll                              System.ServiceModel.dll
Modules                                                       System.ServiceProcess.ServiceController.dll
NJsonSchema.dll                                               System.Text.Encoding.CodePages.dll
Newtonsoft.Json.dll                                           System.Text.Encodings.Web.dll
System.CodeDom.dll                                            System.Threading.AccessControl.dll
System.ComponentModel.Composition.dll                         cs
System.Configuration.ConfigurationManager.dll                 de
System.Data.DataSetExtensions.dll                             es
System.Data.Odbc.dll                                          fr
System.Data.SqlClient.dll                                     it
System.Diagnostics.EventLog.dll                               ja
System.Diagnostics.PerformanceCounter.dll                     ko
System.DirectoryServices.AccountManagement.dll                pl
System.DirectoryServices.Protocols.dll                        pt-BR
System.DirectoryServices.dll                                  ru
System.Drawing.Common.dll                                     runtimes
System.IO.Packaging.dll                                       tr
System.IO.Ports.dll                                           worker.config.json
System.Interactive.Async.dll                                  zh-Hans
System.Management.dll                                         zh-Hant

from azure-functions-powershell-worker.

cmatskas avatar cmatskas commented on May 24, 2024

If you could have a look and let me know, that would be great :)
I guess I'm doing something silly but would be great to validate that it's me and not the worker.

Also, any chance you could explain how to run it on the Azure portal? As it seems, if I switch the Function settings to use powershell as the worker it fails to start the Function

from azure-functions-powershell-worker.

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024

Let me give a repro a try, I'll report back.

Right now, you can only run the PowerShell worker locally. This project is still new (announced at Ignite last week) and has not been implemented in Azure yet.

from azure-functions-powershell-worker.

cmatskas avatar cmatskas commented on May 24, 2024

I understand :) I know it's super new but I was hoping we were a bit further ahead.
It's OK for now to run locally as I have a couple of weeks ahead of me before needing it on Azure (get it?)...

And thanks for helping out with the repro!

from azure-functions-powershell-worker.

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024

Sorry for the delay. Had some trouble with hotel wifi. Will try within the hour since I'll be bored in the airport 😊

from azure-functions-powershell-worker.

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024

Sadly, I'm unable to repro this. Here's what I did:

cd /path/to/azure-functions-powershell-worker
./build.ps1
Copy-Item -Recurse ./src/bin/Debug/netcoreapp2.1/publish/ /usr/local/Cellar/azure-functions-core-tools/2.0.3/workers/powershell
cd ./examples/PSCoreApp/
func start

double check that the func you're running is the correct func. In other words this:

func --version

should be:

2.0.3

and

which func

should be

/usr/local/bin/func

from azure-functions-powershell-worker.

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024

also since you originally ran dotnet publish because of our docs I would recommend doing a:

./build.ps1 -Clean

from azure-functions-powershell-worker.

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024

Any luck @cmatskas? I recommend grabbing the latest. A lot has changed:

./build.ps1 -Clean

from azure-functions-powershell-worker.

TylerLeonhardt avatar TylerLeonhardt commented on May 24, 2024

Gonna close this. Feel free to reopen if you're still seeing this.

from azure-functions-powershell-worker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.