azure-functions-powershell-worker icon indicating copy to clipboard operation
azure-functions-powershell-worker copied to clipboard

Stop-DurableOrchestration api returns 401 error

Open LiyingDai opened this issue 2 years ago • 3 comments

image

LiyingDai avatar Jul 19 '23 08:07 LiyingDai

I am facing the same issue using Get-DurableStatus, as in #745

...
"extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.0.0, 5.0.0)"
  },
  "managedDependency": {
    "enabled": true
  },
  "extensions": {
    "durableTask": {
      "maxConcurrentActivityFunctions": 10,
      "maxConcurrentOrchestratorFunctions": 10
    }
  }
}
...

examples/durable/DurableApp/InstanceManagement/run.ps1 is impossible to execute, for example.

pescador9 avatar Jul 31 '23 18:07 pescador9

@pescador, @LiyingDai: thanks for the report and apologies for these issues. It appears these CmdLets work locally, but are failing on Azure. I've identified the problem being that the URI these APIs are requesting needs to be slightly modified to work on Azure, and I've prototyped a PR here: https://github.com/Azure/azure-functions-durable-powershell/pull/66 . This will take a bit to merge and release.

In the meantime, my recommended workaround is to utilize the DF HTTP API directly to perform these management operations:https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-http-api

davidmrdavid avatar Aug 04 '23 17:08 davidmrdavid

Hi @pescador9 and @LiyingDai - thank you for using Durable Functions! I'm a PM working on DF and would love to learn about your experience. If your time allows, please grab a meeting with us here. Understanding the problems you're trying to solve will help us target future development. Thanks!

lilyjma avatar Mar 04 '24 17:03 lilyjma