Azure / Azure/azure-functions-python-library
Can't change default function name while using FastAPI
- Dominant language
- Python
- Stars
- 179
- Forks
- 79
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 2
Description
I've been trying to set a custom name while using FastAPI and couldn't find the proper way. It always deploys my function with the name "http_app_func," making deploying multiple functions to the same app impossible.
Has anyone been successful with this task?
This is the syntax I thought it would work:
app = func.AsgiFunctionApp(app=fastapi_app, http_auth_level=func.AuthLevel.FUNCTION).function_name(name="HttpTest")
Contributor guide
No contributing guide indexed for this repository
Research direction
Review AsgiFunctionApp and the proposed function_name(name=...) usage first, then inspect how the library derives the deployed default name. Confirm the supported way to assign a custom name and verify that multiple FastAPI functions can coexist in one app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, fastapi, python
- Domain
- api, backend, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100