Azure Function Powershell. Failed to debug locally with: "Internal Error - System.Management.Automation.PSInvalidOperationException: The pipeline was not run because a pipeline is already running. Pipelines cannot be run concurrently." #2776
Labels
Hello,
I got an issue with debugging my Azure Function (PowerShell language). I don't know if I'm on the correct GitHub project between all the extensions (PowerShell, Azure Function, Azure Function Core Tools, ...) so I pick "vscode-azurefunctions". (Please let me know if I need to post to other GitHub project. Thanks)
It doesn't stop (all the time) to my breakpoint and I have to kill my PowerShell Integration Terminal to run the debug again.
I don't have any issue when I run my code on a separate PowerShell project (=without Azure Function runtime)
Here the error message from the Debug Console Window after asking to display Error:
Get-Error
I try to create a new Azure Function without adding new code. I got the same issue with the debugger, so I cannot debug anything properly as I got strange behaviour of my Azure Function like it doesn't break at the breakpoint all the time or I do not get any Output from my Write-Host or Write-Verbose.
I have to kill the terminal as Ctrl-C or Detach command doesn't work or do not respond.
Then I got plenty of "PowerShell Editor Services" output window (as you can see on the gif below)
Here my config:
Windows 10 v20H2 build 19042.928
Core Tools Version: 3.0.3442 (64-bit)
Function Runtime Version: 3.0.15417.0
PowerShell version installed: 7.1.3
When I run the Azure Function, it turns to 7.0 (which is correct based on what I read)
Here my local.settings.json:
Here my host.json: (Even without extensionBundle, or/and applicationInsights or/and logging or/and managedDependency block, I always got an issue for debugging)
Here my function.json
Here my launch.json:
Here my tasks.json:
As mentioned, It's a "fresh" new Azure Function to confirm that it's not related to my project source code application.
After killing
Here how it looks like as I really don't understand which "thing" make it unusable to test my Azure Function locally
The text was updated successfully, but these errors were encountered: