Skip to content

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

@AHarman

Description

@AHarman

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#

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions