allow custom function name instead of http_app_func
Opened this issue · 1 comments
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.
I'm looking for this as well, and there's a discussion going on here as well around the same ask: