azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

Unable to run "func durable..." commands when using hubName set in local.settings.json

Open AHarman opened this issue 5 years ago • 5 comments

Description

When hubName in host.json is set to a string like %TaskHubName% commands run locally that start with "func durable" always return the following message:

Invalid container name. Check MSDN for more information about valid container naming.

Expected behavior

The command to run normally, having retrieved the hubName value from the app settings.

Actual behavior

The command does not run, and instead returns the error message Invalid container name. Check MSDN for more information about valid container naming.

Relevant source code snippets

host.json:

{
  "version": "2.0",
  "logging": {
    "fileLoggingMode": "always",
    "logLevel": {
      "default": "Information"
    }
  },
  "extensions": {
    "durableTask": {
      "hubName": "%TaskHubName%"
    }
  }
}

Known workarounds

Using a "normal" value for hubName

{
  "version": "2.0",
  "logging": {
    "fileLoggingMode": "always",
    "logLevel": {
      "default": "Information"
    }
  },
  "extensions": {
    "durableTask": {
      "hubName": "mylocalhubname"
    }
  }
}

App Details

  • Durable Functions extension version (e.g. v1.8.3): v2.1.1
  • Azure Functions runtime version (1.0 or 2.0): 2.0
  • Programming language used: C#

AHarman avatar Jan 14 '20 17:01 AHarman

Flagging this as a feature request.

fabiocav avatar Feb 01 '20 00:02 fabiocav

@fabiocav do you have any ETA for this?

pratyushaadavalli avatar Jul 19 '21 23:07 pratyushaadavalli

I had moved to Function App 2.0 to resolve the racing issue of TaskHub. And the recommendation is to change "hubName" to "%TaskHubName%".

However, this is breaking my local development experience, please address this issue, thanks!

jyeblog avatar Aug 03 '21 14:08 jyeblog

Any ETA on this?

ctrl-brk avatar Feb 08 '24 00:02 ctrl-brk

This is still an issue with latest versions of Azure Functions Core Tools and an Azure Durable FunctionApp, .Net 8 isolated.

mronnblom-ith avatar May 22 '24 12:05 mronnblom-ith