Comments (14)
I can try to repro this within the hour
from azure-functions-powershell-worker.
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.
from azure-functions-powershell-worker.
@tylerl0706 any chance you could have a look at this as well?
from azure-functions-powershell-worker.
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.
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.
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.
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.
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.
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.
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.
also since you originally ran dotnet publish
because of our docs I would recommend doing a:
./build.ps1 -Clean
from azure-functions-powershell-worker.
Any luck @cmatskas? I recommend grabbing the latest. A lot has changed:
./build.ps1 -Clean
from azure-functions-powershell-worker.
Gonna close this. Feel free to reopen if you're still seeing this.
from azure-functions-powershell-worker.
Related Issues (20)
- [Linux Consumption] [Portal] Portal shows Linux Consumption as an option for Powershell 7.4 it is not supported HOT 3
- [Linux Elastic Premium] Kudu SSH appears to fail for powershell7.4 HOT 3
- Linux (Consumption) not supported in PowerShell 7.4 yet HOT 1
- Feature Request: Recursive Directory Searching for function.json HOT 1
- Az-Accounts: Issue re-emerging.. HOT 4
- Support OpenTelemetry in the PowerShell worker
- Profile.ps1 not instrumented HOT 1
- Diagram of module interaction w/ worker HOT 1
- Update PowerShell SDK for 7.4 to 7.4.2
- Update PowerShell SDK for 7.2 to 7.2.19 HOT 1
- Document OpenTelemetry support HOT 1
- Workaround for issue with hosting Durable Functions app on preview Flex Consumption plan
- Convert pipelines to 1ES
- Fix OTel test concurrency issue
- Backport 1ES pipelines to all release branches HOT 1
- Add back E2E tests for 1ES official pipeline
- Fix failing public pipeline
- Migrate the pipeline changes to host v3 branch
- Add back E2E tests for 1ES public pipeline
- Disable auto module upgrades for 7.2 on EOL day
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-powershell-worker.