Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

allow custom function name instead of http_app_func #31

Description

@sepira

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ x ] feature request
- [  ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Clone the repo and follow the instruction

Any log messages given by the failure

[2024-03-06T00:53:18.773Z] Worker failed to index functions
[2024-03-06T00:53:18.775Z] Result: Failure
Exception: AttributeError: 'AsgiFunctionApp' object has no attribute 'function_name'

Expected/desired behavior

OS and Version?

Windows 11

Versions

Found Python version 3.9.13 (py).
Azure Functions Core Tools
Core Tools Version: 4.0.5530 Commit hash: N/A +c8883e7f3c06e2b424fbac033806c19d8d91418c (64-bit)
Function Runtime Version: 4.28.5.21962

Mention any other details that might be useful

Is it possible to set the function name instead of http_app_func? Something like this?

app = func.AsgiFunctionApp(app=fastapi_app, http_auth_level=func.AuthLevel.FUNCTION).function_name(name="test123")


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions