pip_services3_azure.containers.CommandableAzureFunction module

class pip_services3_azure.containers.CommandableAzureFunction.CommandableAzureFunction(name: Optional[str], description: Optional[str])

Bases: pip_services3_azure.containers.AzureFunction.AzureFunction

Abstract Azure Function function, that acts as a container to instantiate and run components and expose them via external entry point. All actions are automatically generated for commands defined in ICommandable. Each command is exposed as an action defined by “cmd” parameter.

Container configuration for this Azure Function is stored in “./config/config.yml” file. But this path can be overridden by CONFIG_PATH environment variable.

Note: This component has been deprecated. Use Azure FunctionService instead.

### References ###
  • *:logger:*:*:1.0: (optional) ILogger components to pass log messages

  • *:counters:*:*:1.0: (optional) ICounters components to pass collected measurements

  • *:service:azure-function:*:1.0: (optional) IAzureFunctionService services to handle action requests

  • *:service:commandable-azure-function:*:1.0: (optional) IAzureFunctionService services to handle action requests

Example:

register()

Registers all actions in this Azure Function.