In AzureRM we are creating a Function App for right_st.
This function is run as a HttpTrigger
and executing this:
using namespace System.Net
# Input bindings are passed in via param block.
param($Request, $TriggerMetadata)
# Write to the Azure Functions log stream.
Write-Host "PowerShell HTTP trigger function processed a request."
& "D:\home\site\wwwroot\HttpTrigger2\right_st.exe"
We get the following error: PowerRegisterSuspendResumeNotification failure
Here are the console logs from Azure Function App:
2020-03-17T18:39:21 Welcome, you are now connected to log-streaming service. The default timeout is 2 hours. Change the timeout with the App Setting SCM_LOGSTREAM_TIMEOUT (in seconds).
2020-03-17T18:39:29.439 [Information] Executing 'Functions.HttpTrigger2' (Reason='This function was programmatically called via the host APIs.', Id=60f154ce-6a13-4ec8-8b06-87688dbceba0)
2020-03-17T18:39:29.446 [Information] INFORMATION: PowerShell HTTP trigger function processed a request.
2020-03-17T18:39:30.557 [Error] ERROR: fatal error: PowerRegisterSuspendResumeNotification failure
Script stack trace:
at , D:\home\site\wwwroot\HttpTrigger2\run.ps1: line 8
System.Management.Automation.RemoteException: fatal error: PowerRegisterSuspendResumeNotification failure
Note: If we run the following it works( This is using a 7za.exe file that is downloaded from the internet and uploaded to the function):
# Input bindings are passed in via param block.
param($Request, $TriggerMetadata)
# Write to the Azure Functions log stream.
Write-Host "PowerShell HTTP trigger function processed a request."
& "D:\home\site\wwwroot\HttpTrigger2\7za.exe"
Resolution:
Cherry picked: https://go-review.googlesource.com/c/go/+/219657/
Probably good to follow the one for Go 1.14.x as well (golang/go#37699); I have subscribed to both of them so I should get an email when something happens.
In AzureRM we are creating a Function App for right_st. This function is run as a HttpTrigger and executing this:
We get the following error: PowerRegisterSuspendResumeNotification failure
Here are the console logs from Azure Function App: 2020-03-17T18:39:21 Welcome, you are now connected to log-streaming service. The default timeout is 2 hours. Change the timeout with the App Setting SCM_LOGSTREAM_TIMEOUT (in seconds). 2020-03-17T18:39:29.439 [Information] Executing 'Functions.HttpTrigger2' (Reason='This function was programmatically called via the host APIs.', Id=60f154ce-6a13-4ec8-8b06-87688dbceba0) 2020-03-17T18:39:29.446 [Information] INFORMATION: PowerShell HTTP trigger function processed a request. 2020-03-17T18:39:30.557 [Error] ERROR: fatal error: PowerRegisterSuspendResumeNotification failure Script stack trace: at, D:\home\site\wwwroot\HttpTrigger2\run.ps1: line 8
System.Management.Automation.RemoteException: fatal error: PowerRegisterSuspendResumeNotification failure
Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException : Result: ERROR: fatal error: PowerRegisterSuspendResumeNotification failure Script stack trace: at, D:\home\site\wwwroot\HttpTrigger2\run.ps1: line 8
System.Management.Automation.RemoteException: fatal error: PowerRegisterSuspendResumeNotification failure
Note: If we run the following it works( This is using a 7za.exe file that is downloaded from the internet and uploaded to the function):